Top Description Inners Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs.identity

public Class Field

extends Object
Class Inheritance
Imports
com.sun.org.apache.xerces.internal.impl.xpath.XPathException, com.sun.org.apache.xerces.internal.impl.xs.util.ShortListImpl, com.sun.org.apache.xerces.internal.util.SymbolTable, .XMLChar, com.sun.org.apache.xerces.internal.xni.NamespaceContext, com.sun.org.apache.xerces.internal.xs.ShortList, .XSComplexTypeDefinition, .XSConstants, .XSTypeDefinition

Schema identity constraint field.
Author
Andy Clark, IBM

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class
Field.Matcher

Field matcher.

public static class
Field.XPath

Field XPath.

Field Summary

Modifier and TypeField and Description
protected final IdentityConstraint
fIdentityConstraint

Identity constraint.

protected final Field.XPath
fXPath

Field XPath.

Constructor Summary

AccessConstructor and Description
public
Field(Field.XPath xpath, IdentityConstraint identityConstraint)

Constructs a field.

Method Summary

Modifier and TypeMethod and Description
public XPathMatcher
createMatcher(ValueStore store)

Creates a field matcher.

public IdentityConstraint
getIdentityConstraint()

Returns the identity constraint.

public XPath
getXPath()

Returns the field XPath.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of this object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

fIdentityConstraintback to summary
protected final IdentityConstraint fIdentityConstraint

Identity constraint.

fXPathback to summary
protected final Field.XPath fXPath

Field XPath.

Constructor Detail

Fieldback to summary
public Field(Field.XPath xpath, IdentityConstraint identityConstraint)

Constructs a field.

Method Detail

createMatcherback to summary
public XPathMatcher createMatcher(ValueStore store)

Creates a field matcher.

getIdentityConstraintback to summary
public IdentityConstraint getIdentityConstraint()

Returns the identity constraint.

getXPathback to summary
public XPath getXPath()

Returns the field XPath.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a string representation of this object.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

com.sun.org.apache.xerces.internal.impl.xs.identity back to summary

protected Class Field.Matcher

extends XPathMatcher
Class Inheritance

Field matcher.
Author
Andy Clark, IBM

Field Summary

Modifier and TypeField and Description
protected boolean
fMayMatch

A flag indicating whether the field is allowed to match a value.

protected final ValueStore
fStore

Value store for data values.

Inherited from com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher:
DEBUG_ALLDEBUG_ANYDEBUG_MATCHDEBUG_METHODSDEBUG_METHODS2DEBUG_METHODS3DEBUG_STACKfMatchedStringfQNameMATCHEDMATCHED_ATTRIBUTEMATCHED_DESCENDANTMATCHED_DESCENDANT_PREVIOUS

Constructor Summary

AccessConstructor and Description
public
Matcher(Field.XPath xpath, ValueStore store)

Constructs a field matcher.

Method Summary

Modifier and TypeMethod and Description
private short
convertToPrimitiveKind(short valueType)

private ShortList
protected void
handleContent(XSTypeDefinition type, boolean nillable, Object actualValue, short valueType, ShortList itemValueType)

Overrides com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher.handleContent.

protected void
matched(Object actualValue, short valueType, ShortList itemValueType, boolean isNil)

Overrides com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher.matched.

This method is called when the XPath handler matches the XPath expression.

Inherited from com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher:
endElementisMatchedstartDocumentFragmentstartElementtoString

Field Detail

fMayMatchback to summary
protected boolean fMayMatch

A flag indicating whether the field is allowed to match a value.

fStoreback to summary
protected final ValueStore fStore

Value store for data values.

Constructor Detail

Matcherback to summary
public Matcher(Field.XPath xpath, ValueStore store)

Constructs a field matcher.

Method Detail

convertToPrimitiveKindback to summary
private short convertToPrimitiveKind(short valueType)
convertToPrimitiveKindback to summary
private ShortList convertToPrimitiveKind(ShortList itemValueType)
handleContentback to summary
protected void handleContent(XSTypeDefinition type, boolean nillable, Object actualValue, short valueType, ShortList itemValueType)

Overrides com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher.handleContent.

matchedback to summary
protected void matched(Object actualValue, short valueType, ShortList itemValueType, boolean isNil)

Overrides com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher.matched.

This method is called when the XPath handler matches the XPath expression.

com.sun.org.apache.xerces.internal.impl.xs.identity back to summary

public Class Field.XPath

extends XPath
Class Inheritance

Field XPath.
Author
Andy Clark, IBM

Field Summary

Inherited from com.sun.org.apache.xerces.internal.impl.xpath.XPath:
fExpressionfLocationPathsfSymbolTable

Constructor Summary

AccessConstructor and Description
public
XPath(String xpath, SymbolTable symbolTable, NamespaceContext context)

Constructs a field XPath expression.

Method Summary

Modifier and TypeMethod and Description
private static String
fixupXPath(String xpath)

Fixup XPath expression.

private static String
fixupXPath2(String xpath, int offset, final int end)

Inherited from com.sun.org.apache.xerces.internal.impl.xpath.XPath:
getLocationPathgetLocationPathsmaintoString

Constructor Detail

XPathback to summary
public XPath(String xpath, SymbolTable symbolTable, NamespaceContext context) throws XPathException

Constructs a field XPath expression.

Method Detail

fixupXPathback to summary
private static String fixupXPath(String xpath)

Fixup XPath expression. Avoid creating a new String if possible.

fixupXPath2back to summary
private static String fixupXPath2(String xpath, int offset, final int end)