|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Attribute
Defines WSMO attribute. Attribute could be specified as Concept Attribute (attribute which has no {link WsmlDataType} as range) or Data Attribute.
Concept| Method Summary | |
|---|---|
void |
addType(Type type)
Adds a new Type as range for this attribute. |
Concept |
getConcept()
Returns the Concept described by this attribute. |
Identifier |
getInverseOf()
Returns the inverse attribute of this attribute. |
int |
getMaxCardinality()
Returns the maximal cardinality constraint of this attribute. |
int |
getMinCardinality()
Returns the minimal cardinality constraint of this attribute. |
boolean |
isConstraining()
Returns the type of this attribute. |
boolean |
isReflexive()
Returns if this attribute is defined as reflexive. |
boolean |
isSymmetric()
Returns if this attribute is defined as symmetric. |
boolean |
isTransitive()
Returns if this attribute is defined as transitive. |
Set<Type> |
listTypes()
Returns the list of allowed Type for the current attribute. |
void |
removeType(Type type)
Removes a Type for this attribute. |
void |
setConstraining(boolean constraining)
Sets the type of this attribute. |
void |
setInverseOf(Identifier id)
Sets this attribute to be inverse of another attribute. |
void |
setMaxCardinality(int max)
Sets the maximal cardinality constraint of this attribute. |
void |
setMinCardinality(int min)
Sets the minimal cardinality constraint of this attribute. |
void |
setReflexive(boolean reflexive)
Sets this attribute whether to be reflexive. |
void |
setSymmetric(boolean symmetric)
Sets this attribute whether to be symmetric. |
void |
setTransitive(boolean trans)
Sets this attribute whether to be transitive. |
| Methods inherited from interface org.wsmo.common.Entity |
|---|
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue |
| Method Detail |
|---|
boolean isConstraining()
void setConstraining(boolean constraining)
constraining - true (constraining) / false (inferring)int getMinCardinality()
void setMinCardinality(int min)
min - number indicating the minimal cardinality constraintint getMaxCardinality()
void setMaxCardinality(int max)
Concept getConcept()
Concept described by this attribute.
Set<Type> listTypes()
Type for the current attribute.
void addType(Type type)
throws InvalidModelException
Type as range for this attribute.
type - the Type to be added
InvalidModelException
void removeType(Type type)
throws InvalidModelException
Type for this attribute.
type - the Type to be removed
InvalidModelExceptionboolean isReflexive()
void setReflexive(boolean reflexive)
reflexive - is reflexiveboolean isSymmetric()
void setSymmetric(boolean symmetric)
symmetric - is reflexiveboolean isTransitive()
void setTransitive(boolean trans)
trans - is reflexiveIdentifier getInverseOf()
void setInverseOf(Identifier id)
id - attribute to be set as inverse of or null to remove
the current inverse attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||