Top Description Fields Constructors Methods
com.sun.msv.reader.xmlschema

public Class IdentityConstraintState

extends SimpleState
Class Inheritance
Imports
java.util.StringTokenizer, .Vector, org.xml.sax.Locator, com.sun.msv.grammar.NameClass, .NamespaceNameClass, .SimpleNameClass, com.sun.msv.grammar.xmlschema.Field, .IdentityConstraint, .KeyConstraint, .KeyRefConstraint, .UniqueConstraint, .XMLSchemaSchema, .XPath, com.sun.msv.reader.ChildlessState, .GrammarReader, .SimpleState, .State, com.sun.msv.util.StartTagInfo

used to parse <unique>,<key>, and <keyref> element.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected final Vector<Field>
protected XPath[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected State
createChildState(StartTagInfo tag)

Implements abstract com.sun.msv.reader.SimpleState.createChildState.

creates appropriate child state object for this element
protected void
protected void
endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed.
protected Field
protected boolean

Returns:

true if it succeeds in parsing. Otherwise false.
parsePath
(XPath pathObj, String xpath, boolean parseField)

parses "aa/bb/cc/.../".

protected XPath[]
Inherited from com.sun.msv.reader.SimpleState:
endDocumentendElementisGrammarElementstartElement

Field Detail

fieldsback to summary
protected final Vector<Field> fields
selectorback to summary
protected XPath[] selector

Constructor Detail

IdentityConstraintStateback to summary
public IdentityConstraintState()

Method Detail

createChildStateback to summary
protected State createChildState(StartTagInfo tag)

Implements abstract com.sun.msv.reader.SimpleState.createChildState.

Doc from com.sun.msv.reader.SimpleState.createChildState.

creates appropriate child state object for this element

createIdentityConstraintback to summary
protected void createIdentityConstraint()
endSelfback to summary
protected void endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

Doc from com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job

parseFieldback to summary
protected Field parseField(String xpath)
parsePathback to summary
protected boolean parsePath(XPath pathObj, String xpath, boolean parseField)

parses "aa/bb/cc/.../".

Returns:boolean

true if it succeeds in parsing. Otherwise false.

parseSelectorback to summary
protected XPath[] parseSelector(String xpath)