|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Common interface for accessing the content and context of an instance or an occurrence.
Adaptation
Method Summary | |
String |
displayOccurrence(Object value,
Locale aLocale)
Returns, for user display, a string representation of the value specified. |
String |
formatOccurrence(Object value)
Returns the parsable string representation of the value specified. |
AdaptationHome |
getHome()
Returns the current repository. |
SchemaNode |
getNode()
Returns the current schema node of this context. |
SchemaNode |
getNode(Path aPath)
Returns the schema node at the path specified. |
Object |
getValue()
Returns the value of the current node of this context. |
Object |
getValue(Path aPath)
Returns the value of the node specified. |
Method Detail |
public AdaptationHome getHome()
public SchemaNode getNode()
getValue(Path)
public SchemaNode getNode(Path aPath) throws PathAccessException
PathAccessException
getNode()
public Object getValue(Path aPath) throws PathAccessException
null
if node has an undefined
value.
An inheritance lookup mechanism may be used for retrieving the value:
null
).Any update on data must conform to Rule for updates.
PathAccessException
- if aPath
does not refer to an existing node in the underlying
type tree structure.public Object getValue() throws PathAccessException
This method is a shortcut for getValue(Path.SELF)
.
Any update on data must conform to Rule for updates.
PathAccessException
public String displayOccurrence(Object value, Locale aLocale)
The value must be compatible with the current node's type. It will be formatted according this type specification in the schema.
If the current node has its maxOccurs > 1
, then value passed as argument must
be an element of the List
instance, not the List
itself.
formatOccurrence(Object)
public String formatOccurrence(Object value)
The value must be compatible with the current node's type. It will be formatted according XML Schema specification of this type.
If the current node has its maxOccurs > 1
, then value passed as argument must
be an element of the List
instance, not the List
itself.
displayOccurrence(Object, Locale)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.