public class XmlElements extends Object implements TypeConstraint
XmlElement
s associated with a type
definition, by default no elements are contained.Constructor and Description |
---|
XmlElements()
Create a default XML element constraint w/o any elements
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(XmlElement element)
Add a XML element to the type
|
Collection<? extends XmlElement> |
getElements()
Get the elements associated with the type
|
boolean |
isInheritable()
Determines if the constraint is inheritable, meaning it may be used for a
sub-type.
|
public XmlElements()
public Collection<? extends XmlElement> getElements()
public void addElement(XmlElement element)
element
- the element to addpublic boolean isInheritable()
TypeConstraint
isInheritable
in interface TypeConstraint
TypeConstraint.isInheritable()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a