public class SchemaImpl extends BaseAnnotationHolder implements Schema
Schema.| Constructor and Description |
|---|
SchemaImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getAnnotation, setAnnotationgetLocation, setLocationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotation, setAnnotationgetLocationpublic SchemaImpl()
public java.lang.String getModuleId()
public java.lang.String getId()
Schemapublic Visibility getVisibility()
public boolean visibleToModule(java.lang.String moduleId)
SchemavisibleToModule in interface Schemapublic void addElementModel(ElementModel model)
public java.util.List getElementModel()
SchemaElementModel, 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 Schemapublic boolean canInstancesBeKeyed()
Schematop-level ElementModel must define a non-null
key attribute.canInstancesBeKeyed in interface Schemapublic 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 setId(java.lang.String id)
public Module getDefiningModule()
SchemagetDefiningModule in interface Schema