|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides a context for displaying a hierarchy node.
Warning: if node is a
root, an
orphans parent, or an
enumeration node,
it does not correspond to a table occurrence
(that is, method getOccurrence() returns null).
UILabelRendererForHierarchy| Method Summary | |
UILabelRendererForHierarchyContext |
add_cr(String aString)
Writes a String to the HTTP output stream and adds a carriage return to the HTML source at the end. |
UILabelRendererForHierarchyContext |
add(int integer)
This writes an int to the HTTP output stream. |
UILabelRendererForHierarchyContext |
add(String aString)
Writes a string to the HTTP output stream. |
String |
displayOccurrenceValue(Path aPath,
boolean useLabels)
Returns a user-friendly representation of the value specified, according the current locale. |
Object |
getEnumerationValue()
Returns the current enumeration value if isEnumerationNode() is true.
|
String |
getLabelFromDefaultPattern()
Returns the localized label as specified by the element defaultLabel
that defines a pattern in osd:table schema declaration. |
Locale |
getLocale()
Returns the current locale of the user session. |
Adaptation |
getOccurrence()
Returns the current occurrence that is being displayed. |
String |
getURLForResource(ResourceType aResourceType,
String aResourceName)
Returns the URL of the Web resource specified, in the current module and for the current session locale. |
String |
getURLForResource(ResourceType aResourceType,
String aResourceName,
Locale aLocale)
Returns the URL of the Web resource specified, in the current module (that is, the module of the current adaptation). |
String |
getURLForResource(String aModuleAliasOrName,
ResourceType aResourceType,
String aResourceName,
Locale aLocale)
Returns the URL of the Web resource specified. |
boolean |
isEnumerationNode()
Returns true if current node is an enumeration node.
|
boolean |
isOrphansParent()
Returns true if current node is an orphans parent.
|
boolean |
isRoot()
Returns true if current node is the root of the hierarchy.
|
boolean |
isTarget()
Returns true if current occurrence is a target
table occurrence.
|
boolean |
isTerminal()
Returns true if current occurrence has no children
in the hierarchy. |
| Method Detail |
public UILabelRendererForHierarchyContext add(String aString)
public UILabelRendererForHierarchyContext add(int integer)
int to the HTTP output stream.
public UILabelRendererForHierarchyContext add_cr(String aString)
public Locale getLocale()
public String getURLForResource(ResourceType aResourceType,
String aResourceName)
getURLForResource(ResourceType, String, Locale),
getLocale()
public String getURLForResource(ResourceType aResourceType,
String aResourceName,
Locale aLocale)
UnsupportedOperationException - if the resource type is internal (not accessible from HTTP).
public String getURLForResource(String aModuleAliasOrName,
ResourceType aResourceType,
String aResourceName,
Locale aLocale)
throws ModuleNotFoundException
UnsupportedOperationException - if the resource type is internal (not accessible from HTTP).
ModuleNotFoundException - if the alias or name specified does not correspond to a module.public Adaptation getOccurrence()
Warning: if current node is a
root or an
orphans parent,
this method returns null.
public Object getEnumerationValue()
isEnumerationNode() is true.
Otherwise this method returns null.
public String displayOccurrenceValue(Path aPath,
boolean useLabels)
A value can have a display that is different from the standard XML formatted value
since it can take into account locale-dependent format for numbers and dates and also,
if useLabels is true, specific value labeling.
For more information, see value display section.
aPath - specifies the value to display in the occurrence (a relative path is interpreted
telatively to the root node of this context).useLabels - If true and labeling is enabled (see above), specifies that the label
associated to the value must be returned. Otherwise the formatted value is returned.
IllegalStateException - if this node is not on an occurrence (see getOccurrence()).SchemaNode.formatToXsString(Object),
SchemaNode.displayOccurrence(Object, boolean, ValueContext, Locale)public String getLabelFromDefaultPattern()
defaultLabel
that defines a pattern in osd:table schema declaration.
public boolean isEnumerationNode()
true if current node is an enumeration node.
An enumeration corresponds in the schema to a xs:enumeration.
In this case, the method getOccurrence()
returns null.
getEnumerationValue()public boolean isOrphansParent()
true if current node is an orphans parent.
In this case, the method getOccurrence()
returns null.
public boolean isRoot()
true if current node is the root of the hierarchy.
In this case, the method getOccurrence()
returns null.
public boolean isTarget()
true if current occurrence is a target
table occurrence.
The target table is the table from wich the hierarchy was built.
public boolean isTerminal()
true if current occurrence has no children
in the hierarchy.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.5.1 [0599]
Copyright Orchestra Networks 2000-2008. All rights reserved.