com.togethersoft.openapi.model.elements
Interface Property

All Known Implementing Classes:
PropertyAdapter

public interface Property

This interface represents a property of the model element. Property is
a name-value pair where both name and value are strings. One of the reasons of
such restriction on the value type is a homogenuity requirement. Although
model may be not well-structured, it should be homogenouos in the sense
of value types.



Property object itself can contain nested properties accessible
via getSubproperties method. Thus, properties can form
tree-like structure.



Properties ARE NOT elements of the model, that is they do
not have identifiers, properties tree can not be backward traversed, etc.
Properties responsible for the storage of atomic values, not more and not
less.

Author:
TogetherSoft
See Also: PropertyMap

Field Summary
 final static PropertyMaplnkPropertyMap
           
 final static StringMETA_CHILDLINKS
           
 final static StringMETA_CHILDNODES
           
 final static StringMETA_CHILDREN
           
 final static StringMETACLASS
           
 final static StringMODEL_ID
           
 final static StringNAME
           

Method Summary
 booleancanSetValue(String newValue)
           
 StringgetName()
           
 PropertyMapgetSubproperties()
          Provides an access to the nested properties tree
 StringgetValue()
           
 booleanisWritable()
           
 voidsetValue(String newValue)
          Sets value of this property to the given newValue

Field Detail

lnkPropertyMap

public final static PropertyMap lnkPropertyMap
clientCardinality 1
label subproperties
directed
supplierCardinality 0..1

META_CHILDLINKS

public final static String META_CHILDLINKS

META_CHILDNODES

public final static String META_CHILDNODES

META_CHILDREN

public final static String META_CHILDREN

METACLASS

public final static String METACLASS

MODEL_ID

public final static String MODEL_ID

NAME

public final static String NAME
Method Detail

canSetValue

public boolean canSetValue(String newValue)
Returns: true if given newValue is valid
for this property. Note that it is not the same as
isWritable(). It is possible that a property is writable
but does not allow to set some particular value

getName

public String getName()
Returns: Name of this property

getSubproperties

public PropertyMap getSubproperties()
Provides an access to the nested properties tree
Returns: Instance of PropertyMap containing nested

getValue

public String getValue()
Returns: Value of this property

isWritable

public boolean isWritable()
Returns: true if this property is writable

setValue

public void setValue(String newValue)
Sets value of this property to the given newValue

Association Links

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class com.togethersoft.openapi.model.elements.PropertyMap

Label subproperties
Client Cardinality 1
Supplier Cardinality 0..1
Is directed