public abstract class SchemaRep.ContainsSubElements extends SchemaRep.ElementExpr
| Modifier and Type | Field and Description |
|---|---|
protected List |
subElements |
parentExpr| Constructor and Description |
|---|
ContainsSubElements() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubElement(List se) |
void |
addSubElement(SchemaRep.ElementExpr subElement) |
boolean |
compressWhiteSpaceInner()
If whitespace is used on the inside of this element.
|
boolean |
compressWhiteSpaceOuter()
If whitespace is used on the outside of this element.
|
boolean |
equals(Object o) |
void |
findAllSubElements(Class type,
List lst)
Find all matching sub elements and put them into lst.
|
void |
findAllSubElements(String name,
List lst)
Find all matching sub elements and put them into lst.
|
SchemaRep.ElementExpr |
findSubElement(Class type) |
SchemaRep.ElementExpr |
findSubElement(String nodeName) |
SchemaRep.ElementExpr |
findSubElement(String[] nodeNames)
This will do an xpath like search.
|
void |
findSubElementNames(List list) |
String |
getAttributeString()
Return the attributes as a string for the XML Schema.
|
String |
getJavaTypeName() |
int |
hashCode() |
SchemaRep.ElementExpr |
optimize() |
Iterator |
subElementsIterator() |
String |
toString() |
void |
validate() |
abstract Map |
validSubElementTypeMap() |
void |
writeDTD(StringBuffer out) |
protected boolean |
writeDTDSubElementNames(StringBuffer out) |
protected boolean |
writeDTDSubElementNames(StringBuffer out,
boolean writeParens) |
void |
writeXMLSchema(XMLWriter out) |
void |
writeXMLSchema(XMLWriter out,
boolean printMyElement)
If @printMyElement is false, then we only print subelements.
|
getContentName, getFullContentName, getName, getParentExpr, readSchema, setParentExpr, uniquifyFullContentName, writeDTDNameprotected List subElements
public void addSubElement(SchemaRep.ElementExpr subElement)
public void addSubElement(List se)
public Iterator subElementsIterator()
public SchemaRep.ElementExpr findSubElement(String nodeName)
public SchemaRep.ElementExpr findSubElement(Class type)
public SchemaRep.ElementExpr findSubElement(String[] nodeNames)
public void findAllSubElements(String name, List lst)
public void findAllSubElements(Class type, List lst)
public void validate()
validate in class SchemaRep.ElementExprpublic abstract Map validSubElementTypeMap()
public void writeDTD(StringBuffer out)
writeDTD in class SchemaRep.ElementExprpublic String getAttributeString()
public boolean compressWhiteSpaceOuter()
public boolean compressWhiteSpaceInner()
public void writeXMLSchema(XMLWriter out) throws IOException
writeXMLSchema in class SchemaRep.ElementExprIOExceptionpublic void writeXMLSchema(XMLWriter out, boolean printMyElement) throws IOException
IOExceptionprotected boolean writeDTDSubElementNames(StringBuffer out)
protected boolean writeDTDSubElementNames(StringBuffer out, boolean writeParens)
public void findSubElementNames(List list)
public SchemaRep.ElementExpr optimize()
optimize in class SchemaRep.ElementExprpublic String getJavaTypeName()
Copyright © 2017. All Rights Reserved.