|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.builder.info.XMLInfo
public class XMLInfo
A class for storing XML related information.
Field Summary | |
---|---|
static short |
ATTRIBUTE_TYPE
Represents the attribute node type. |
static java.lang.String |
CHOICE_NODE_NAME_ERROR_INDICATION
Identifies the node name for a choice group. |
static short |
ELEMENT_TYPE
Represents the element node type. |
static short |
TEXT_TYPE
Represents the text node type. |
Constructor Summary | |
---|---|
XMLInfo()
Creates a new XML Info. |
|
XMLInfo(short nodeType)
Creates a new XMLInfo with the given node type. |
|
XMLInfo(java.lang.String name,
short nodeType)
Creates a new XMLInfo with the given XML name and node type. |
Method Summary | |
---|---|
java.lang.String |
getNamespacePrefix()
Returns the namespace prefix of the object described by this XMLInfo. |
java.lang.String |
getNamespaceURI()
Returns the namespace URI of the object described by this XMLInfo. |
java.lang.String |
getNodeName()
Returns the XML name for the object described by this XMLInfo. |
short |
getNodeType()
Returns the node type for the object described by this XMLInfo. |
java.lang.String |
getNodeTypeName()
Returns the string name of the nodeType, either "attribute", "element" or "text". |
XSType |
getSchemaType()
Returns the XML Schema type for the described object. |
boolean |
isElementDefinition()
Returns true if XSD is global element or element with anonymous type. |
boolean |
isMultivalued()
Return whether or not the object described by this XMLInfo is multi-valued (appears more than once in the XML document). |
boolean |
isRequired()
Return true if the XML object described by this XMLInfo must appear at least once in the XML document (or object model). |
void |
setElementDefinition(boolean elementDef)
Sets whether or not XSD is element or not. |
void |
setMultivalued(boolean multivalued)
Sets whether the XML object can appear more than once in the XML document. |
void |
setNamespacePrefix(java.lang.String nsPrefix)
Sets the desired namespace prefix for this XMLInfo There is no guarantee that this prefix will be used. |
void |
setNamespaceURI(java.lang.String nsURI)
Sets the Namespace URI for this XMLInfo. |
void |
setNodeName(java.lang.String name)
Sets the XML name of the object described by this XMLInfo. |
void |
setNodeType(short nodeType)
Sets the nodeType for this XMLInfo. |
void |
setRequired(boolean required)
Sets whether or not the XML object must appear at least once. |
void |
setSchemaType(XSType xsType)
Sets the XML Schema type for this XMLInfo. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short ATTRIBUTE_TYPE
public static final short ELEMENT_TYPE
public static final short TEXT_TYPE
public static final java.lang.String CHOICE_NODE_NAME_ERROR_INDICATION
Constructor Detail |
---|
public XMLInfo()
public XMLInfo(short nodeType)
nodeType
- the nodeType which this XMLInfo representspublic XMLInfo(java.lang.String name, short nodeType)
name
- the xml node namenodeType
- the nodeType which this XMLInfo representsMethod Detail |
---|
public final java.lang.String getNodeName()
public final java.lang.String getNamespacePrefix()
public final java.lang.String getNamespaceURI()
public final boolean isElementDefinition()
public final short getNodeType()
public final java.lang.String getNodeTypeName()
public final XSType getSchemaType()
public boolean isMultivalued()
public final boolean isRequired()
public final void setMultivalued(boolean multivalued)
multivalued
- The boolean indicating whether or not the object can appear
more than once.public final void setNodeName(java.lang.String name)
name
- the XML node name of the described object.public final void setNamespacePrefix(java.lang.String nsPrefix)
nsPrefix
- the desired namespace prefixpublic final void setNamespaceURI(java.lang.String nsURI)
nsURI
- the Namespace URI for this XMLInfopublic final void setElementDefinition(boolean elementDef)
elementDef
- The flag indicating whether or not XSD is global
element, element with anonymous type or not.public final void setNodeType(short nodeType)
nodeType
- the node type of the described objectpublic final void setSchemaType(XSType xsType)
xsType
- the XML Schema typepublic final void setRequired(boolean required)
required
- the flag indicating whether or not this XML object is
required
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |