|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.generator.MappingDetail
public class MappingDetail
Holder for the details of how a mapping is to be represented in a schema. Each mapping is converted to a complex type, but the complex type may be either global or local to a containing global element. In the case of a mapping used as the base for one or more extension types, both a global complex type and a global element that references the type are required. This also tracks the content form for the complex type definition.
Field Summary | |
---|---|
private MappingElement |
m_extensionBase
Schema type extension base mapping. |
private boolean |
m_hasAttribute
Has attribute(s) flag. |
private boolean |
m_hasChild
Has child element(s) flag. |
private boolean |
m_hasText
Has child text(s) flag. |
private boolean |
m_isElement
Generate as element flag. |
private boolean |
m_isGroup
Generate as group/attributeGroup flag. |
private boolean |
m_isType
Generate as complex type flag. |
private MappingElementBase |
m_mapping
Mapping to be generated. |
private QName |
m_otherName
Element/group/attributeGroup name (ignored if not generated as any of these). |
private QName |
m_substitutionName
Substitution group base name. |
private QName |
m_typeName
Type name (ignored if not generated as complex type). |
Constructor Summary | |
---|---|
MappingDetail(MappingElementBase map,
boolean haschild,
boolean hastext,
MappingElement base,
QName tname,
QName oname)
Constructor. |
Method Summary | |
---|---|
MappingElement |
getExtensionBase()
Get base mapping for schema type extension. |
MappingElementBase |
getMapping()
Get mapping. |
QName |
getOtherName()
Get element name. |
QName |
getSubstitution()
Get substitution group base name. |
QName |
getTypeName()
Get name for type. |
boolean |
hasAttribute()
Check if attribute component present. |
boolean |
hasChild()
Check if child element component present. |
boolean |
hasText()
Check if text component present. |
boolean |
isElement()
Check if generating as an element. |
boolean |
isGroup()
Check if generating as a group. |
boolean |
isType()
Check if generating as a group. |
void |
setElement(boolean gen)
Set generating as an element. |
void |
setGroup(boolean gen)
Set generating as a group. |
void |
setSubstitution(QName qname)
Set substitution group base name. |
void |
setType(boolean gen)
Set generating as a type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final MappingElementBase m_mapping
private final MappingElement m_extensionBase
private final boolean m_hasChild
private final boolean m_hasText
private final boolean m_hasAttribute
private final QName m_typeName
private final QName m_otherName
private QName m_substitutionName
private boolean m_isType
private boolean m_isElement
private boolean m_isGroup
Constructor Detail |
---|
public MappingDetail(MappingElementBase map, boolean haschild, boolean hastext, MappingElement base, QName tname, QName oname)
map
- mapping definitionhaschild
- has child element(s) flaghastext
- has child text(s) flagbase
- base mapping for schema type extensiontname
- name as typeoname
- name as element/group/attributeGroupMethod Detail |
---|
public boolean isElement()
public void setElement(boolean gen)
gen
- public boolean isGroup()
public void setGroup(boolean gen)
gen
- public boolean isType()
public void setType(boolean gen)
gen
- public MappingElement getExtensionBase()
public boolean hasAttribute()
public boolean hasChild()
public boolean hasText()
public MappingElementBase getMapping()
public QName getTypeName()
public QName getOtherName()
null
if abstract)public QName getSubstitution()
public void setSubstitution(QName qname)
qname
-
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |