|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.schema.SchemaIdentityConstraintImpl
public class SchemaIdentityConstraintImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.xmlbeans.SchemaIdentityConstraint |
---|
SchemaIdentityConstraint.Ref |
Field Summary |
---|
Fields inherited from interface org.apache.xmlbeans.SchemaIdentityConstraint |
---|
CC_KEY, CC_KEYREF, CC_UNIQUE |
Fields inherited from interface org.apache.xmlbeans.SchemaComponent |
---|
ANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE |
Constructor Summary | |
---|---|
SchemaIdentityConstraintImpl(org.apache.xmlbeans.impl.schema.SchemaContainer c)
|
Method Summary | |
---|---|
void |
buildPaths()
|
SchemaAnnotation |
getAnnotation()
Returns the Schema annotation object or null if none present |
java.lang.String |
getChameleonNamespace()
|
SchemaComponent.Ref |
getComponentRef()
Used for on-demand loading of schema components. |
int |
getComponentType()
Returns the type code for the schema object, either SchemaComponent.TYPE ,
SchemaComponent.ELEMENT , SchemaComponent.ATTRIBUTE , SchemaComponent.ATTRIBUTE_GROUP ,
SchemaComponent.MODEL_GROUP , SchemaComponent.IDENTITY_CONSTRAINT , or SchemaComponent.NOTATION . |
int |
getConstraintCategory()
Return the constraint category. |
java.lang.Object |
getFieldPath(int index)
Return a compiled xpath object for the field. |
java.lang.String[] |
getFields()
Return (a copy of) the xpaths for all the fields. |
javax.xml.namespace.QName |
getName()
The name of the schema component |
java.util.Map |
getNSMap()
Return a read-only copy of the namespace map. |
XmlObject |
getParseObject()
|
SchemaIdentityConstraint.Ref |
getRef()
|
SchemaIdentityConstraint |
getReferencedKey()
Returns the key that a key ref refers to. |
java.lang.String |
getSelector()
Return the selector xpath as a string. |
java.lang.Object |
getSelectorPath()
Return a compiled xpath object for the selector. |
java.lang.String |
getSourceName()
The name of resource that represends the source .xsd in which this component was defined (if known) See: SchemaTypeLoader.getSourceAsStream(String)
Example: |
java.lang.String |
getTargetNamespace()
|
SchemaTypeSystem |
getTypeSystem()
Returns the typesystem within which this component definition resides |
java.lang.Object |
getUserData()
Returns user-specific information. |
boolean |
isResolved()
Only applicable to keyrefs. |
void |
setAnnotation(SchemaAnnotation ann)
|
void |
setConstraintCategory(int type)
|
void |
setFields(java.lang.String[] fields)
|
void |
setFilename(java.lang.String filename)
|
void |
setName(javax.xml.namespace.QName name)
|
void |
setNSMap(java.util.Map nsMap)
|
void |
setParseContext(XmlObject o,
java.lang.String targetNamespace,
boolean chameleon)
|
void |
setReferencedKey(SchemaIdentityConstraint.Ref key)
|
void |
setSelector(java.lang.String selector)
|
void |
setUserData(java.lang.Object data)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaIdentityConstraintImpl(org.apache.xmlbeans.impl.schema.SchemaContainer c)
Method Detail |
---|
public void setFilename(java.lang.String filename)
public java.lang.String getSourceName()
SchemaComponent
SchemaTypeLoader.getSourceAsStream(String)
SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
getSourceName
in interface SchemaComponent
public java.lang.String getSelector()
SchemaIdentityConstraint
getSelector
in interface SchemaIdentityConstraint
public java.lang.Object getSelectorPath()
SchemaIdentityConstraint
getSelectorPath
in interface SchemaIdentityConstraint
public void setAnnotation(SchemaAnnotation ann)
public SchemaAnnotation getAnnotation()
SchemaAnnotated
getAnnotation
in interface SchemaAnnotated
public void setNSMap(java.util.Map nsMap)
public java.util.Map getNSMap()
SchemaIdentityConstraint
getNSMap
in interface SchemaIdentityConstraint
public void setSelector(java.lang.String selector)
public void setFields(java.lang.String[] fields)
public java.lang.String[] getFields()
SchemaIdentityConstraint
getFields
in interface SchemaIdentityConstraint
public java.lang.Object getFieldPath(int index)
SchemaIdentityConstraint
getFieldPath
in interface SchemaIdentityConstraint
public void buildPaths() throws XPath.XPathCompileException
XPath.XPathCompileException
public void setReferencedKey(SchemaIdentityConstraint.Ref key)
public SchemaIdentityConstraint getReferencedKey()
SchemaIdentityConstraint
getReferencedKey
in interface SchemaIdentityConstraint
public void setConstraintCategory(int type)
public int getConstraintCategory()
SchemaIdentityConstraint
SchemaIdentityConstraint.CC_KEY
, SchemaIdentityConstraint.CC_KEYREF
,
or SchemaIdentityConstraint.CC_UNIQUE
.
getConstraintCategory
in interface SchemaIdentityConstraint
public void setName(javax.xml.namespace.QName name)
public javax.xml.namespace.QName getName()
SchemaComponent
getName
in interface SchemaComponent
public int getComponentType()
SchemaComponent
SchemaComponent.TYPE
,
SchemaComponent.ELEMENT
, SchemaComponent.ATTRIBUTE
, SchemaComponent.ATTRIBUTE_GROUP
,
SchemaComponent.MODEL_GROUP
, SchemaComponent.IDENTITY_CONSTRAINT
, or SchemaComponent.NOTATION
.
getComponentType
in interface SchemaComponent
public SchemaTypeSystem getTypeSystem()
SchemaComponent
getTypeSystem
in interface SchemaComponent
public void setParseContext(XmlObject o, java.lang.String targetNamespace, boolean chameleon)
public XmlObject getParseObject()
public java.lang.String getTargetNamespace()
public java.lang.String getChameleonNamespace()
public boolean isResolved()
public SchemaIdentityConstraint.Ref getRef()
public SchemaComponent.Ref getComponentRef()
SchemaComponent
getComponentRef
in interface SchemaComponent
public java.lang.Object getUserData()
SchemaIdentityConstraint
getUserData
in interface SchemaIdentityConstraint
SchemaBookmark
public void setUserData(java.lang.Object data)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |