Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.xsd.constraint
Class XmlElements

java.lang.Object
  extended by eu.esdihumboldt.hale.io.xsd.constraint.XmlElements
All Implemented Interfaces:
TypeConstraint

public class XmlElements
extends Object
implements TypeConstraint

Constraint that states the XmlElements associated with a type definition, by default no elements are contained.

Author:
Simon Templer

Constructor Summary
XmlElements()
          Create a default XML element constraint w/o any elements
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlElements

public XmlElements()
Create a default XML element constraint w/o any elements

Method Detail

getElements

public Collection<? extends XmlElement> getElements()
Get the elements associated with the type

Returns:
the XML elements

addElement

public void addElement(XmlElement element)
Add a XML element to the type

Parameters:
element - the element to add

isInheritable

public boolean isInheritable()
Description copied from interface: TypeConstraint
Determines if the constraint is inheritable, meaning it may be used for a sub-type. A constraint may only be inherited if it is not overriden in the sub-type.

Specified by:
isInheritable in interface TypeConstraint
Returns:
if the constraint is inheritable
See Also:
TypeConstraint.isInheritable()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d