newRoot and completeRoot defined in this interface, plus a set of newChild, addChild and setValue methods that will be descovered by the framework at runtime with introspection. The contract for methods discovered at runtime with introspection: newChild methods newChild method must have five arguments: java.lang.Object) for this new childorg.jboss.xml.binding.UnmarshallingContextjava.lang.Stringjava.lang.Stringorg.xml.sax.AttributesnewChild() method returns either a new instance of the child object that represents the XML element with the namespace URI and local name (in this case, the child XML element is said to be accepted, i.e. should be represented in the object graph) or null if this child XML element should be ignored, i.e. not be represented in the object graph. addChild methods addChild() method are: java.lang.Object) of the childnewChild method that was called when parsing of this child XML element started)org.jboss.xml.binding.UnmarshallingContextas java.lang.Stringjava.lang.StringaddChild method is called, the child object is supposed to be populated with all the data from the corresponding XML element. The child object now can be validated and added to the parent. setValue methods java.lang.Object) which was returned earlier by the newChild method (that was called when parsing of the parent XML element started) for which the value of an XML element was readorg.jboss.xml.binding.UnmarshallingContextjava.lang.Stringjava.lang.Stringjava.lang.StringsetValue method the object model factory is supposed to set the value on the field which represents the parsed XML element possibly converting the parsed XML element value to the field's Java type. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |