|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.xsdimportsax.utils.SAXDocumentElement
public class SAXDocumentElement
Wrapper class for tags read by SAX parser.
Constructor Summary | |
---|---|
SAXDocumentElement(String QName)
Constructs a new instance with empty attribute list. |
Method Summary | |
---|---|
void |
associate()
Couples the current instance with a "named complex type". |
RegexpInterval |
determineInterval()
Create an interval using attributes minOccurs and maxOccurs of current instance. |
RegexpType |
determineRegexpType()
Match tag of current instance to a RegexpType . |
String |
getAttributeValue(XSDAttribute attribute)
Gets the value of specified attribute. |
Map<String,SAXAttributeData> |
getAttrs()
Returns the whole attribute list for this tag. |
String |
getName()
Returns case sensitive name without namespace prefix. |
String |
getNameOrRefValue()
Returns value of name attribute or ref attribute if any of them can be used. |
XSDTag |
getTag()
Returns tag matching the name. |
boolean |
hasAttribute(XSDAttribute attribute)
Checks if current instance has a non empty attribute specified by the parameter. |
boolean |
isAssociated()
Checks if current instance was paired with its parent's container. |
boolean |
isComplexType()
Checks if instance is wrapping a complexType tag. |
boolean |
isOrderIndicator()
Check if tag of current instance is one of choice, sequence, all. |
boolean |
isSchema()
Checks if instance is wrapping a schema tag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAXDocumentElement(String QName)
QName
is trimmed of its namespace prefix.
QName
- Name of the schema element, should be set in lowercase.Method Detail |
---|
public Map<String,SAXAttributeData> getAttrs()
public String getName()
public XSDTag getTag()
INVALID
public boolean hasAttribute(XSDAttribute attribute)
true
if there is an attribute with the specified name defined and it is not empty, false
otherwise.public String getAttributeValue(XSDAttribute attribute)
public String getNameOrRefValue()
public void associate() throws XSDException
XSDException
- When current instance is not an order indicator.public boolean isAssociated()
true
if associate
method was called previously, false
otherwise.public boolean isComplexType()
true
if current tag is complexType.public boolean isSchema()
true
if current tag is schema.public boolean isOrderIndicator()
public RegexpType determineRegexpType()
RegexpType
.
RegexpType.ALTERNATION
,
RegexpType.CONCATENATION
,
RegexpType.PERMUTATION
or null
if instance is not an order indicator.public RegexpInterval determineInterval()
XSDOccurences.createInterval(java.lang.String, java.lang.String)
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |