|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.hivemind.impl.BaseLocatable | +--org.apache.hivemind.parse.BaseAnnotationHolder | +--org.apache.hivemind.schema.impl.SchemaImpl
Implementation of Schema
.
Constructor Summary | |
SchemaImpl()
|
Method Summary | |
void |
addElementModel(ElementModel model)
|
boolean |
canInstancesBeKeyed()
Returns true if Elements conforming to this Schema can be indexed using a key. |
java.util.List |
getElementModel()
Returns a List of ElementModel , identifing the elements which may be enclosed by the
modeled element. |
java.lang.String |
getId()
Returns the (unqualified) id of this schema. |
java.lang.String |
getModuleId()
|
Visibility |
getVisibility()
|
void |
setId(java.lang.String id)
|
void |
setModuleId(java.lang.String moduleId)
|
void |
setVisibility(Visibility visibility)
|
void |
validateKeyAttributes()
Called by the DescriptorParser to make sure that key
attributes specified by the top-level elements actually are defined. |
boolean |
visibleToModule(java.lang.String moduleId)
Returns true if the schema is visible to the specified module, false otherwise. |
Methods inherited from class org.apache.hivemind.parse.BaseAnnotationHolder |
getAnnotation, setAnnotation |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
getLocation, setLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hivemind.parse.AnnotationHolder |
getAnnotation, setAnnotation |
Methods inherited from interface org.apache.hivemind.Locatable |
getLocation |
Constructor Detail |
public SchemaImpl()
Method Detail |
public java.lang.String getModuleId()
public java.lang.String getId()
Schema
getId
in interface Schema
public Visibility getVisibility()
public boolean visibleToModule(java.lang.String moduleId)
Schema
visibleToModule
in interface Schema
public void addElementModel(ElementModel model)
public java.util.List getElementModel()
Schema
ElementModel
, identifing the elements which may be enclosed by the
modeled element.
The returned list is unmodifiabled and may be empty, but won't be null.
getElementModel
in interface Schema
public boolean canInstancesBeKeyed()
Schema
top-level ElementModel
must define a non-null
key attribute
.
canInstancesBeKeyed
in interface Schema
public void validateKeyAttributes()
DescriptorParser
to make sure that key
attributes specified by the top-level elements actually are defined.
public void setVisibility(Visibility visibility)
public void setModuleId(java.lang.String moduleId)
public void setId(java.lang.String id)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |