|
JAXB v0.21 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--javax.xml.bind.ValidatableObject
|
+--javax.xml.bind.MarshallableObject
|
+--javax.xml.bind.PCData
Marshallable-object class for parsed character data.
Instances of this class are used to represent character data occurring in elements with simple character content or mixed content.
An instance of this class must contain character data in order to be valid.
| Constructor Summary | |
PCData()
Constructs a new instance of this class with no character data. |
|
PCData(String chars)
Constructs a new instance of this class with the given character data. |
|
| Method Summary | |
String |
chars()
Returns the character data in this instance. |
void |
chars(String chars)
Changes the character data in this instance. |
int |
compareTo(Object ob)
Compares this object to another object. |
boolean |
equals(Object ob)
Tells whether or not this object is equal to another. |
String |
getChars()
Returns the character data in this instance. |
int |
hashCode()
Returns a hash-code value for this object. |
void |
marshal(Marshaller m)
Marshals the content of this object, and its children, using the given marshaller (optional operation). |
void |
setChars(String chars)
Changes the character data in this instance. |
void |
unmarshal(Unmarshaller um)
Unmarshals an element or some character data into this object, converting data as necessary, checking type constraints and local structural constraints, and recording the information required to check global structural constraints. |
void |
validateThis()
Ensures that this object does not violate any local structural constraints. |
| Methods inherited from class javax.xml.bind.ValidatableObject |
invalidate, validate, validate |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PCData()
public PCData(String chars)
chars - The character data for this instance| Method Detail |
public String chars()
public void chars(String chars)
chars - The new character data for this instance;
may not be nullpublic int compareTo(Object ob)
String.compareTo method.compareTo in interface Comparableob - The object with which this object is to be comparedClassCastException - If the given object is not an instance of this classpublic boolean equals(Object ob)
equals in class Objectob - The object with which this object is to be comparedpublic String getChars()
public int hashCode()
hashCode in class Object
public void marshal(Marshaller m)
throws IOException
MarshallableObject This method must use the given marshaller's XMLWriter to write the content of this
object, and it must invoke the given marshaller's marshal(MarshallableObject)
method to marshal any children.
As defined in this class, this method throws an UnsupportedOperationException; it should be overridden only by
schema-derived classes. This method should only be invoked by the
marshalling process; its behavior when invoked in any other manner is
unspecified.
marshal in class MarshallableObjectjavax.xml.bind.MarshallableObjectm - The marshaller to be usedIOException - If an I/O error occursUnsupportedOperationException - If this object does not support marshallingpublic void setChars(String chars)
chars - The new character data for this instance
public void unmarshal(Unmarshaller um)
throws UnmarshalException
MarshallableObject This method must use the given unmarshaller's XMLScanner to parse the elements and
attributes represented by this object. It must recursively invoke the
given unmarshaller's unmarshal() and
unmarshal(Class) methods to
unmarshal any subelements. Finally, it must invoke the reference(String,
Validator.Patcher) method of the marshaller's validator in order to
arrange for the target of each identifier reference to be installed once
the reference is resolved.
As defined in this class, this method throws an UnsupportedOperationException; it should be overridden only by
schema-derived classes. This method should only be invoked by the
unmarshalling process; its behavior when invoked in any other manner is
unspecified.
unmarshal in class MarshallableObjectjavax.xml.bind.MarshallableObjectu - The unmarshaller to be usedScanIOException - If an I/O error occursScanException - If the source document is not well-formedInvalidContentException - If the unmarshaller's scanner is not initially positioned at an
appropriate start tag or at some character data, according to
whether this object is to represent an element or character
data, respectively; or if this object is to represent an
element and the element's content specification as described in
the source schema is violatedValidationException - If a type or structural constraint is violated by the input
document
public void validateThis()
throws MissingContentException
ValidatableObjectThe default implementation of this method does nothing; it should be overridden only by schema-derived classes. This method may be invoked outside of the normal validation process.
validateThis in class ValidatableObjectjavax.xml.bind.ValidatableObjectEmptyAttributeException - If a collection property derived from a compound attribute is
empty, but the source schema requires at least one valueInvalidContentException - If the children of this object violate the content
specification of the schema component from which this
object's class was derivedMissingAttributeException - If a property derived from a required attribute
has no valueMissingContentException - If a property derived from a required content component
has no value
|
JAXB v0.21 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Copyright © 2001 by Sun Microsystems, Inc., 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.