|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.xml.schema.SchemaConstruct
This class is represents any schema construct.
All other classes for schema constructs should be inherited from this one.
Nested Class Summary | |
static class |
SchemaConstruct.ConstructType
An enumeration type for a schema constructs. |
Field Summary | |
protected org.w3c.dom.Element |
appInfo
Deprecated. there can be more than one appInfo ,
use getAppInfos() and setAppInfos(org.w3c.dom.Element[]) instead |
protected QName |
name
The name of the type |
protected SchemaConstruct |
reference
If this construct is a reference to another construct, this field contains the referenced one |
Constructor Summary | |
protected |
SchemaConstruct(SchemaConstruct.ConstructType constructType)
A protected constructor. |
protected |
SchemaConstruct(SchemaConstruct.ConstructType constructType,
QName name)
A protected constructor. |
Method Summary | |
java.lang.Object |
clone()
Shallow-clones the schema construct. |
boolean |
containsInFirst(java.lang.String localName)
|
void |
copyFrom(SchemaConstruct anotherConstruct)
Copies all the information of another construct into this construct. |
org.w3c.dom.Element |
getAppInfo()
Returns construct's <appInfo> element. |
org.w3c.dom.Element[] |
getAppInfos()
Gets the construct's appinfos. |
SchemaConstruct.ConstructType |
getConstructType()
Returns this schema construct's type. |
java.util.Map |
getFacets()
Returns a map of facets & extensibility attributes. |
java.lang.String |
getJavaName()
Returns the name of member in java. |
QName |
getName()
Returns the name of the type. |
SchemaConstruct |
getParent()
Returns this schema construct's parent. |
java.util.Map |
getPrefixNamespaceMapping()
|
SchemaConstruct |
getReferencedConstruct()
If this schema construct is a reference, returns the referenced construct. |
QName |
parseQName(java.lang.String qname)
|
void |
setAppInfo(org.w3c.dom.Element appInfo)
Sets construct's <appInfo> element. |
void |
setAppInfos(org.w3c.dom.Element[] appInfos)
Sets the list of <appInfo> elements |
void |
setConstructType(SchemaConstruct.ConstructType constructType)
Sets this schema construct's type. |
void |
setFacets(java.util.Map facets)
Sets a map of facets & extensibility attributes. |
void |
setJavaName(java.lang.String javaName)
Sets the name of member in java. |
void |
setName(QName name)
Sets the name of the type. |
void |
setParent(SchemaConstruct parent)
Sets this schema construct's parent. |
void |
setPrefixNamespaceMapping(java.util.Map prefixNamespaceMap)
|
void |
setReferencedConstruct(SchemaConstruct referenced)
Sets the referenced schema construct. |
java.lang.String |
toIndentedString()
|
java.lang.String |
toIndentedString(int level,
java.util.Set alreadyProcessed)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected QName name
protected SchemaConstruct reference
protected org.w3c.dom.Element appInfo
appInfo
,
use getAppInfos()
and setAppInfos(org.w3c.dom.Element[])
instead
Constructor Detail |
protected SchemaConstruct(SchemaConstruct.ConstructType constructType)
constructType
- protected SchemaConstruct(SchemaConstruct.ConstructType constructType, QName name)
constructType
- name
- Method Detail |
public QName getName()
public void setName(QName name)
name
- the new namepublic java.lang.String getJavaName()
public void setJavaName(java.lang.String javaName)
javaName
- the name of member in javapublic SchemaConstruct getReferencedConstruct()
public void setReferencedConstruct(SchemaConstruct referenced)
referenced
- the referenced schema constructpublic org.w3c.dom.Element getAppInfo()
public void setAppInfo(org.w3c.dom.Element appInfo)
appInfo
- construct's <appInfo> elementpublic org.w3c.dom.Element[] getAppInfos()
null
;
returned instances should not be modifiedpublic void setAppInfos(org.w3c.dom.Element[] appInfos)
appInfos
- null
of list of DOM elements;
note that the value is stored as is, without cloningpublic java.util.Map getFacets()
public void setFacets(java.util.Map facets)
facets
- the map of facets to be setpublic java.lang.String toIndentedString(int level, java.util.Set alreadyProcessed)
public java.lang.String toIndentedString()
public QName parseQName(java.lang.String qname) throws SchemaException
SchemaException
public SchemaConstruct getParent()
public void setParent(SchemaConstruct parent)
parent
- the schema construct's parentpublic java.util.Map getPrefixNamespaceMapping()
public void setPrefixNamespaceMapping(java.util.Map prefixNamespaceMap)
public SchemaConstruct.ConstructType getConstructType()
public void setConstructType(SchemaConstruct.ConstructType constructType)
constructType
- the schema construct's parentpublic java.lang.Object clone()
public void copyFrom(SchemaConstruct anotherConstruct)
anotherConstruct
- the another constructpublic boolean containsInFirst(java.lang.String localName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |