Package org.jibx.v2
Interface MappedStructure
-
- All Known Subinterfaces:
MappedElement,MappedType
public interface MappedStructureInterface implemented by all classes corresponding to global schema definitions and <complexType> definitions (global or nested). This includes <attributeGroup> and <group> definitions, as well as global <attribute> and <element> definitions. Besides the actual interface methods, classes which correspond to a complexType must define an unmarshalling methodpublic static ClassName _check_substituted(XmlReader, ClassName)to check for type substitution, those which correspond to an element or group must define a methodpublic static boolean _is_present()to check if an optional instance of the element or group is present, and classes which correspond to anything other than a complexType must define apublic static ClassName _check_instance(ClassName)method to return an instance of the class (where the supplied instance may benull, or an instance of a subclass).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void_marshal(XmlWriter wrtr)Marshal the structure representation.void_unmarshal(XmlReader rdr)Unmarshal the structure representation.
-
-
-
Method Detail
-
_marshal
void _marshal(XmlWriter wrtr) throws JiBXException
Marshal the structure representation. In the case of an <attribute>, <attributeGroup>, or <complexType> structure the writer must be positioned on the element start tag at the time of this call.- Parameters:
wrtr-- Throws:
JiBXException
-
_unmarshal
void _unmarshal(XmlReader rdr) throws JiBXException
Unmarshal the structure representation. In the case of an <attribute>, <attributeGroup>, or <complexType> structure the reader must be positioned on the element start tag at the time of this call.- Parameters:
rdr-- Throws:
JiBXException
-
-