Package org.geotools.xs.bindings
Class XSAttributeBinding
- Object
- 
- AbstractComplexBinding
- 
- XSAttributeBinding
 
 
- 
- All Implemented Interfaces:
- Binding,- ComplexBinding
 
 public class XSAttributeBinding extends AbstractComplexBinding Binding object for the type http://www.w3.org/2001/XMLSchema:attribute.<xs:complexType name="attribute"> <xs:complexContent> <xs:extension base="xs:annotated"> <xs:sequence> <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/> </xs:sequence> <xs:attributeGroup ref="xs:defRef"/> <xs:attribute name="type" type="xs:QName"/> <xs:attribute name="use" use="optional" default="optional"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="prohibited"/> <xs:enumeration value="optional"/> <xs:enumeration value="required"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="default" type="xs:string"/> <xs:attribute name="fixed" type="xs:string"/> <xs:attribute name="form" type="xs:formChoice"/> </xs:extension> </xs:complexContent> </xs:complexType>
- 
- 
Constructor SummaryConstructors Constructor Description XSAttributeBinding()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExecutionMode()QNamegetTarget()ClassgetType()voidinitialize(ElementInstance instance, Node node, MutablePicoContainer context)Objectparse(ElementInstance instance, Node node, Object value)- 
Methods inherited from class AbstractComplexBindingencode, getProperties, getProperty, initializeChildContext
 
- 
 
- 
- 
- 
Method Detail- 
getTargetpublic QName getTarget() - Returns:
- The qualified name of the target for the binding.
 
 - 
getExecutionModepublic int getExecutionMode() - Specified by:
- getExecutionModein interface- Binding
- Overrides:
- getExecutionModein class- AbstractComplexBinding
- Returns:
- The execution mode of the binding, one of the constants AFTER, BEFORE, or OVERRIDE.
- See Also:
- Binding.AFTER,- Binding.BEFORE,- Binding.OVERRIDE
 
 - 
getTypepublic Class getType() - Returns:
- The java type this binding maps to.
 
 - 
initializepublic void initialize(ElementInstance instance, Node node, MutablePicoContainer context) - Specified by:
- initializein interface- ComplexBinding
- Overrides:
- initializein class- AbstractComplexBinding
- Parameters:
- instance- The element being parsed.
- node- The node in the parse tree representing the element being parsed. It is important to note that at the time this method is called the node contains no child element nodes, only child attribute nodes.
- context- The container to be used as context for child binding.
 
 - 
parsepublic Object parse(ElementInstance instance, Node node, Object value) throws Exception - Specified by:
- parsein interface- ComplexBinding
- Overrides:
- parsein class- AbstractComplexBinding
- Parameters:
- instance- The element being parsed.
- node- The node in the parse tree representing the element being parsed.
- value- The result of the parse from another strategy in the type hierarchy. Could be null if this is the first strategy being executed.
- Returns:
- The parsed object, or null if the component could not be parsed.
- Throws:
- Exception- Strategy objects should not attempt to handle any exceptions.
 
 
- 
 
-