|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.xsom.impl.ComponentImpl
com.sun.xml.xsom.impl.IdentityConstraintImpl
public class IdentityConstraintImpl
XSIdentityConstraint implementation.
| Field Summary |
|---|
| Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl |
|---|
ownerDocument |
| Fields inherited from interface com.sun.xml.xsom.XSIdentityConstraint |
|---|
KEY, KEYREF, UNIQUE |
| Constructor Summary | |
|---|---|
IdentityConstraintImpl(SchemaDocumentImpl _owner,
AnnotationImpl _annon,
Locator _loc,
ForeignAttributesImpl fa,
short category,
String name,
XPathImpl selector,
List<XPathImpl> fields,
Ref.IdentityConstraint refer)
|
|
| Method Summary | ||
|---|---|---|
|
apply(XSFunction<T> function)
Accepts a functor. |
|
XSIdentityConstraint |
get()
|
|
short |
getCategory()
Returns the type of the identity constraint. |
|
List<XSXPath> |
getFields()
Returns the list of field XPaths. |
|
String |
getName()
Name of the identity constraint. |
|
XSElementDecl |
getParent()
Gets the XSElementDecl that owns this identity constraint. |
|
XSIdentityConstraint |
getReferencedKey()
If this is XSIdentityConstraint.KEYREF, returns the key XSIdentityConstraint
being referenced. |
|
XSXPath |
getSelector()
Returns the selector XPath expression as string. |
|
String |
getTargetNamespace()
Target namespace of the identity constraint. |
|
void |
setParent(ElementDecl parent)
|
|
void |
visit(XSVisitor visitor)
Accepts a visitor. |
|
| Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl |
|---|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.xml.xsom.XSComponent |
|---|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle |
| Constructor Detail |
|---|
public IdentityConstraintImpl(SchemaDocumentImpl _owner,
AnnotationImpl _annon,
Locator _loc,
ForeignAttributesImpl fa,
short category,
String name,
XPathImpl selector,
List<XPathImpl> fields,
Ref.IdentityConstraint refer)
| Method Detail |
|---|
public void visit(XSVisitor visitor)
XSComponent
visit in interface XSComponentpublic <T> T apply(XSFunction<T> function)
XSComponent
apply in interface XSComponentpublic void setParent(ElementDecl parent)
public XSElementDecl getParent()
XSIdentityConstraintXSElementDecl that owns this identity constraint.
getParent in interface XSIdentityConstraintpublic String getName()
XSIdentityConstraintXSIdentityConstraint within
the namespace.
getName in interface XSIdentityConstraintpublic String getTargetNamespace()
XSIdentityConstraintgetParent().getTargetNamespace().
getTargetNamespace in interface XSIdentityConstraintpublic short getCategory()
XSIdentityConstraint
getCategory in interface XSIdentityConstraintXSIdentityConstraint.KEY,XSIdentityConstraint.KEYREF, or XSIdentityConstraint.UNIQUE.public XSXPath getSelector()
XSIdentityConstraint
getSelector in interface XSIdentityConstraintpublic List<XSXPath> getFields()
XSIdentityConstraint
getFields in interface XSIdentityConstraintStrings,
each representing the XPath.public XSIdentityConstraint getReferencedKey()
XSIdentityConstraintXSIdentityConstraint.KEYREF, returns the key XSIdentityConstraint
being referenced.
getReferencedKey in interface XSIdentityConstraintXSIdentityConstraint.getCategory()==XSIdentityConstraint.KEYREF).public XSIdentityConstraint get()
get in interface Ref.IdentityConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||