API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.bind. JAXBElement View Source
Author(s)
Kohsuke Kawaguchi, Joe Fialli
Since
JAXB 2.0
Version
Serial
Hierarchy
 Object
      JAXBElement
Implements
 Serializable
Subclasses
Description
public class JAXBElement
  JAXB representation of an Xml Element.
See also:   
Constructors
public JAXBElement (QName name, Class< T> declaredType, Class scope, T value)
  Construct an xml element instance.
public JAXBElement (QName name, Class< T> declaredType, T value)
  Construct an xml element instance.
Methods
Hide/Show inherited methods
public Class< T> getDeclaredType ()
Returns the Java binding of the xml element declaration's type attribute.
public QName getName ()
Returns the xml element tag name.
public Class getScope ()
  Returns scope of xml element declaration.
public T getValue ()
  Return the content model and attribute values for this element.
public boolean isGlobalScope ()
Returns true iff this xml element declaration is global.
public boolean isNil ()
  Returns true iff this element instance content model is nil.
public boolean isTypeSubstituted ()
Returns true iff this xml element instance's value has a different type than xml element declaration's declared type.
public void setNil (boolean value)
  Set whether this element has nil content.
public void setValue ( T t)
  Set the content model and attributes of this xml element.
Fields
Hide/Show inherited fields
protectedfinal Class< T> declaredType
Java datatype binding for xml element declaration's type.
protectedfinal QName name
xml element tag name
protected boolean nil
true iff the xml element instance has xsi:nil="true".
protectedfinal Class scope
  Scope of xml element declaration representing this xml element instance.
protected T value
  xml element value.
Nested Classes
  JAXBElement.GlobalScope
Designates global scope for an xml element.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar