|
||||||||||
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
public class 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. |
Module |
getDefiningModule()
Return the Module in which the Schema was defined. |
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 |
setModule(Module module)
|
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 setModule(Module module)
public void setId(java.lang.String id)
public Module getDefiningModule()
Schema
getDefiningModule
in interface Schema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |