Top Description Fields Constructors Methods
com.sun.xml.xsom.impl

public Class IdentityConstraintImpl

extends ComponentImpl
implements XSIdentityConstraint, IdentityConstraint
Class Inheritance
All Implemented Interfaces
com.sun.xml.xsom.impl.Ref.IdentityConstraint, com.sun.xml.xsom.XSIdentityConstraint, com.sun.xml.xsom.XSComponent
Imports
com.sun.xml.xsom.XSElementDecl, .XSIdentityConstraint, .XSXPath, com.sun.xml.xsom.impl.parser.SchemaDocumentImpl, com.sun.xml.xsom.visitor.XSFunction, .XSVisitor, org.xml.sax.Locator, java.util.Collections, .List

XSIdentityConstraint implementation.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private final short
private final List<XSXPath>
private final String
private XSElementDecl
private final Ref.IdentityConstraint
private final XSXPath
Inherited from com.sun.xml.xsom.impl.ComponentImpl:
ownerDocument

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> T
apply(XSFunction<T> function)

Implements com.sun.xml.xsom.XSComponent.apply.

Accepts a functor.

public XSIdentityConstraint
public short
getCategory()

Implements com.sun.xml.xsom.XSIdentityConstraint.getCategory.

Returns the type of the identity constraint.

public List<XSXPath>
getFields()

Implements com.sun.xml.xsom.XSIdentityConstraint.getFields.

Returns the list of field XPaths.

public String
getName()

Implements com.sun.xml.xsom.XSIdentityConstraint.getName.

Name of the identity constraint.

public XSElementDecl
getParent()

Implements com.sun.xml.xsom.XSIdentityConstraint.getParent.

Gets the XSElementDecl that owns this identity constraint.

public XSIdentityConstraint
getReferencedKey()

Implements com.sun.xml.xsom.XSIdentityConstraint.getReferencedKey.

If this is KEYREF, returns the key being referenced.

public XSXPath
getSelector()

Implements com.sun.xml.xsom.XSIdentityConstraint.getSelector.

Returns the selector XPath expression as string.

public String
getTargetNamespace()

Implements com.sun.xml.xsom.XSIdentityConstraint.getTargetNamespace.

Target namespace of the identity constraint.

public void
public void
visit(XSVisitor visitor)

Implements com.sun.xml.xsom.XSComponent.visit.

Accepts a visitor.

Inherited from com.sun.xml.xsom.impl.ComponentImpl:
getAnnotationgetAnnotationgetForeignAttributegetForeignAttributesgetLocatorgetOwnerSchemagetRootgetSourceDocumentselectselectSingletoString

Field Detail

categoryback to summary
private final short category
fieldsback to summary
private final List<XSXPath> fields
nameback to summary
private final String name
parentback to summary
private XSElementDecl parent
referback to summary
private final Ref.IdentityConstraint refer
selectorback to summary
private final XSXPath selector

Constructor Detail

IdentityConstraintImplback to summary
public IdentityConstraintImpl(SchemaDocumentImpl _owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl fa, short category, String name, XPathImpl selector, List<XPathImpl> fields, Ref.IdentityConstraint refer)

Method Detail

applyback to summary
public <T> T apply(XSFunction<T> function)

Implements com.sun.xml.xsom.XSComponent.apply.

Doc from com.sun.xml.xsom.XSComponent.apply.

Accepts a functor.

Annotations
@Override
getback to summary
public XSIdentityConstraint get()

Implements com.sun.xml.xsom.impl.Ref.IdentityConstraint.get.

Annotations
@Override
getCategoryback to summary
public short getCategory()

Implements com.sun.xml.xsom.XSIdentityConstraint.getCategory.

Doc from com.sun.xml.xsom.XSIdentityConstraint.getCategory.

Returns the type of the identity constraint.

Annotations
@Override
getFieldsback to summary
public List<XSXPath> getFields()

Implements com.sun.xml.xsom.XSIdentityConstraint.getFields.

Doc from com.sun.xml.xsom.XSIdentityConstraint.getFields.

Returns the list of field XPaths.

Annotations
@Override
getNameback to summary
public String getName()

Implements com.sun.xml.xsom.XSIdentityConstraint.getName.

Doc from com.sun.xml.xsom.XSIdentityConstraint.getName.

Name of the identity constraint. A name uniquely identifies this within the namespace.

Annotations
@Override
getParentback to summary
public XSElementDecl getParent()

Implements com.sun.xml.xsom.XSIdentityConstraint.getParent.

Doc from com.sun.xml.xsom.XSIdentityConstraint.getParent.

Gets the XSElementDecl that owns this identity constraint.

Annotations
@Override
getReferencedKeyback to summary
public XSIdentityConstraint getReferencedKey()

Implements com.sun.xml.xsom.XSIdentityConstraint.getReferencedKey.

Doc from com.sun.xml.xsom.XSIdentityConstraint.getReferencedKey.

If this is KEYREF, returns the key being referenced.

Annotations
@Override
getSelectorback to summary
public XSXPath getSelector()

Implements com.sun.xml.xsom.XSIdentityConstraint.getSelector.

Doc from com.sun.xml.xsom.XSIdentityConstraint.getSelector.

Returns the selector XPath expression as string.

Annotations
@Override
getTargetNamespaceback to summary
public String getTargetNamespace()

Implements com.sun.xml.xsom.XSIdentityConstraint.getTargetNamespace.

Doc from com.sun.xml.xsom.XSIdentityConstraint.getTargetNamespace.

Target namespace of the identity constraint. Just short for getParent().getTargetNamespace().

Annotations
@Override
setParentback to summary
public void setParent(ElementDecl parent)
visitback to summary
public void visit(XSVisitor visitor)

Implements com.sun.xml.xsom.XSComponent.visit.

Doc from com.sun.xml.xsom.XSComponent.visit.

Accepts a visitor.

Annotations
@Override