public class IdentityConstraintImpl extends ComponentImpl implements XSIdentityConstraint, Ref.IdentityConstraint
XSIdentityConstraint implementation.ownerDocumentKEY, KEYREF, UNIQUE| Constructor and Description |
|---|
IdentityConstraintImpl(SchemaDocumentImpl _owner,
AnnotationImpl _annon,
Locator _loc,
ForeignAttributesImpl fa,
short category,
String name,
XPathImpl selector,
List<XPathImpl> fields,
Ref.IdentityConstraint refer) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
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.
|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSinglepublic IdentityConstraintImpl(SchemaDocumentImpl _owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl fa, short category, String name, XPathImpl selector, List<XPathImpl> fields, Ref.IdentityConstraint refer)
public void visit(XSVisitor visitor)
XSComponentvisit in interface XSComponentpublic <T> T apply(XSFunction<T> function)
XSComponentapply 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()
XSIdentityConstraintgetCategory in interface XSIdentityConstraintXSIdentityConstraint.KEY,XSIdentityConstraint.KEYREF, or XSIdentityConstraint.UNIQUE.public XSXPath getSelector()
XSIdentityConstraintgetSelector in interface XSIdentityConstraintpublic List<XSXPath> getFields()
XSIdentityConstraintgetFields 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.IdentityConstraintCopyright © 2005–2017 Oracle Corporation. All rights reserved.