|
XSOM 20110809-redhat-3 | |||||||||
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 XSComponent
public <T> T apply(XSFunction<T> function)
XSComponent
apply
in interface XSComponent
public void setParent(ElementDecl parent)
public XSElementDecl getParent()
XSIdentityConstraint
XSElementDecl
that owns this identity constraint.
getParent
in interface XSIdentityConstraint
public String getName()
XSIdentityConstraint
XSIdentityConstraint
within
the namespace.
getName
in interface XSIdentityConstraint
public String getTargetNamespace()
XSIdentityConstraint
getParent().getTargetNamespace()
.
getTargetNamespace
in interface XSIdentityConstraint
public short getCategory()
XSIdentityConstraint
getCategory
in interface XSIdentityConstraint
XSIdentityConstraint.KEY
,XSIdentityConstraint.KEYREF
, or XSIdentityConstraint.UNIQUE
.public XSXPath getSelector()
XSIdentityConstraint
getSelector
in interface XSIdentityConstraint
public List<XSXPath> getFields()
XSIdentityConstraint
getFields
in interface XSIdentityConstraint
String
s,
each representing the XPath.public XSIdentityConstraint getReferencedKey()
XSIdentityConstraint
XSIdentityConstraint.KEYREF
, returns the key XSIdentityConstraint
being referenced.
getReferencedKey
in interface XSIdentityConstraint
XSIdentityConstraint.getCategory()
==XSIdentityConstraint.KEYREF
).public XSIdentityConstraint get()
get
in interface Ref.IdentityConstraint
|
XSOM 20110809-redhat-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |