public class ValueItem extends Item
Modifier and Type | Field | Description |
---|---|---|
private boolean |
m_attributePresent |
Attribute data present flag.
|
private boolean |
m_contentPresent |
Character data content data present flag.
|
private boolean |
m_elementPresent |
Element data present flag.
|
private QName |
m_schemaType |
Original schema type.
|
private JavaType |
m_type |
Predefined type reference.
|
Modifier | Constructor | Description |
---|---|---|
private |
ValueItem(ValueItem original,
Item ref,
GroupItem parent) |
Copy constructor.
|
(package private) |
ValueItem(AnnotatedBase comp,
QName type,
JavaType ref,
GroupItem parent) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
protected Item |
copy(Item ref,
GroupItem parent) |
Copy the item under a different parent.
|
protected java.lang.String |
describe(int depth,
boolean classified) |
Build a description of the item.
|
QName |
getSchemaType() |
Get schema type name.
|
JavaType |
getType() |
Get the simple type for this value.
|
boolean |
isAttributePresent() |
Check if an attribute is part of this item.
|
boolean |
isContentPresent() |
Check if character data content is part of this item.
|
boolean |
isElementPresent() |
Check if a child elements is part of this item.
|
classifyContent, findDisjointParent, getComponentExtension, getEffectiveName, getName, getNext, getParent, getSchemaComponent, getTopmost, isCollection, isFixedName, isIgnored, isImplicit, isOptional, isTopmost, leadString, reparent, setImplicit, setName
private final JavaType m_type
private final QName m_schemaType
private boolean m_attributePresent
private boolean m_elementPresent
private boolean m_contentPresent
private ValueItem(ValueItem original, Item ref, GroupItem parent)
original
- ref
- reference (for overrides to copy; null
if none)parent
- ValueItem(AnnotatedBase comp, QName type, JavaType ref, GroupItem parent)
comp
- schema component extensiontype
- schema type nameref
- schema type equivalent (null
if not appropriate)parent
- containing structure (null
if a top-level structure)public JavaType getType()
public QName getSchemaType()
protected java.lang.String describe(int depth, boolean classified)
public boolean isAttributePresent()
true
for items corresponding to attribute
definitions, and groupings including these items which do not define an element name.true
if attributepublic boolean isElementPresent()
true
for all items corresponding to element
definitions, and all groupings which include such an item.true
if contentpublic boolean isContentPresent()
true
for all items corresponding to
simpleContent definitions, and all groupings which include such an item.true
if content