|
XML for Java 2.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
int |
addAttDef(int elementIndex,
AttDef attDef)
Create and populate an AttDef, and this function will add it, and return the new attDefIndex for it. |
int |
addContentSpecNode(ContentSpecNode csn)
|
int |
addDefaultAttributes(int elementIndex,
AttrPool attrPool,
int firstAttrIndex,
int lastAttrIndex)
|
int |
addElement(int elementNameIndex)
Add an element and return the elementIndex, given an elementNameIndex. |
int |
addElementDecl(ElementDecl decl)
Add an ElementDecl. |
boolean |
addId(int idIndex,
int elementNameIndex)
|
void |
addIdRef(int idIndex,
int elementNameIndex)
|
void |
checkIdRefs()
|
void |
checkNamespace(int elementIndex,
int firstAttrIndex)
|
int |
getAttDef(int elementNameIndex,
int attrNameIndex)
Returns an index into the StringPool of the attribute name |
int |
getAttDefaultType(int attDefIndex)
Returns an int corresponding to the com.ibm.xml.framework.AttDef AttDefaultType constant. |
int |
getAttName(int attDefIndex)
Returns an index into the StringPool of the attribute name |
int |
getAttType(int attDefIndex)
Returns an int corresponding to the com.ibm.xml.framework.AttDef AttType constant. |
int |
getAttValue(int attDefIndex)
Returns an index into the StringPool of the attribute value |
ContentModel |
getContentModel(int elementIndex)
Return a ContentModel, for validation. |
int |
getContentSpec(int elementIndex)
Return a contentSpecIndex which can be used by getContentSpecNode |
java.lang.String |
getContentSpecAsString(int elementIndex)
Return a String representation of the content model for an elementIndex. |
void |
getContentSpecNode(int contentSpecIndex,
ContentSpecNode csn)
Given a contentSpecIndex and a reference to a ContentSpecNode, this function will fill in the public fields of the ContentSpecNode, which can be accessed via the input reference, after the call. |
java.lang.String |
getContentSpecNodeAsString(int contentSpecIndex)
Return the content spec node as a String. |
int |
getContentSpecType(int elementIndex)
Return an int corresponding to a CONTENTSPEC_* constant in ElementDecl |
int |
getElement(int elementNameIndex)
Return an element index, given an element name index. |
int |
getElementName(int elementIndex)
Return an index which can be used by StringPool#toString |
int |
getEnumeration(int attDefIndex)
Returns an index into the StringPool's stringsInList. |
int |
getRootElement()
Get the root element index. |
void |
reset(ParserState parserState)
Reset this pool for use during the next invocation of the parser. |
ElementDeclPool |
resetOrCopy(ParserState parserState)
Return a pool for use during the next invocation of the parser. |
void |
setContentModel(int elementIndex,
ContentModel cm)
Set a ContentModel, for validation. |
void |
setRootElement(int elementIndex)
Set the root element |
Method Detail |
public void reset(ParserState parserState)
public ElementDeclPool resetOrCopy(ParserState parserState)
public void setRootElement(int elementIndex)
public int getRootElement()
public int getElement(int elementNameIndex)
public int addElement(int elementNameIndex)
public int addElementDecl(ElementDecl decl)
public int getElementName(int elementIndex)
public int getContentSpecType(int elementIndex)
public int getContentSpec(int elementIndex)
public java.lang.String getContentSpecAsString(int elementIndex)
public ContentModel getContentModel(int elementIndex)
public void setContentModel(int elementIndex, ContentModel cm)
public int addContentSpecNode(ContentSpecNode csn)
public void getContentSpecNode(int contentSpecIndex, ContentSpecNode csn)
public java.lang.String getContentSpecNodeAsString(int contentSpecIndex)
public int addAttDef(int elementIndex, AttDef attDef) throws java.lang.Exception
public int getAttDef(int elementNameIndex, int attrNameIndex)
public int getAttName(int attDefIndex)
public int getAttValue(int attDefIndex)
public int getAttType(int attDefIndex)
public int getAttDefaultType(int attDefIndex)
public int getEnumeration(int attDefIndex)
StringPool.stringsInList(int)
public int addDefaultAttributes(int elementIndex, AttrPool attrPool, int firstAttrIndex, int lastAttrIndex) throws java.lang.Exception
public boolean addId(int idIndex, int elementNameIndex)
public void addIdRef(int idIndex, int elementNameIndex)
public void checkIdRefs() throws java.lang.Exception
public void checkNamespace(int elementIndex, int firstAttrIndex) throws java.lang.Exception
|
XML for Java 2.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |