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, setAnnotation
getLocation, setLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, setAnnotation
getLocation
public SchemaImpl()
public java.lang.String getModuleId()
public java.lang.String getId()
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 setId(java.lang.String id)
public Module getDefiningModule()
Schema
getDefiningModule
in interface Schema