public class SchemaRep.Attribute extends SchemaRep.ContainsSubElements implements SchemaRep.CanRef
subElementsparentExpr| Constructor and Description |
|---|
Attribute(String n) |
Attribute(String n,
String ns) |
Attribute(String n,
String ns,
String type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getArrayType() |
String |
getAttributeName() |
String |
getAttributeNameNoNS() |
String |
getAttributeNamespace() |
String |
getAttributeString()
Return the attributes as a string for the XML Schema.
|
String |
getContentName() |
String |
getDefaultValue() |
String |
getFixed() |
String |
getJavaType() |
String |
getName() |
String |
getRef()
May return null.
|
SchemaRep.Attribute |
getRefAttribute() |
SchemaRep.ElementExpr |
getRefElementExpr() |
String |
getType() |
String |
getUse() |
int |
hashCode() |
boolean |
hasRef() |
boolean |
isAttributeNamed(String n) |
boolean |
isDefiningNewType() |
boolean |
isOptional() |
boolean |
isProhibited() |
boolean |
isRequired() |
void |
readSchema(Element node) |
void |
validate() |
Map |
validSubElementTypeMap() |
void |
writeDTD(StringBuffer out) |
void |
writeDTD(StringBuffer out,
String elementName) |
boolean |
writeDTDName(StringBuffer out) |
addSubElement, addSubElement, compressWhiteSpaceInner, compressWhiteSpaceOuter, findAllSubElements, findAllSubElements, findSubElement, findSubElement, findSubElement, findSubElementNames, getJavaTypeName, optimize, subElementsIterator, toString, writeDTDSubElementNames, writeDTDSubElementNames, writeXMLSchema, writeXMLSchemagetFullContentName, getParentExpr, setParentExpr, uniquifyFullContentNamepublic Attribute(String n)
public String getName()
getName in class SchemaRep.ElementExprpublic String getContentName()
getContentName in class SchemaRep.ElementExprpublic String getAttributeName()
public String getAttributeNamespace()
public String getAttributeNameNoNS()
public String getType()
public String getJavaType()
public String getFixed()
public boolean isRequired()
public boolean isOptional()
public boolean isProhibited()
public String getUse()
public boolean isAttributeNamed(String n)
public boolean hasRef()
hasRef in interface SchemaRep.CanRefpublic String getRef()
getRef in interface SchemaRep.CanRefpublic SchemaRep.Attribute getRefAttribute()
public SchemaRep.ElementExpr getRefElementExpr()
getRefElementExpr in interface SchemaRep.CanRefpublic boolean isDefiningNewType()
public String getArrayType()
public String getDefaultValue()
public void writeDTD(StringBuffer out)
writeDTD in class SchemaRep.ContainsSubElementspublic void writeDTD(StringBuffer out, String elementName)
public boolean writeDTDName(StringBuffer out)
writeDTDName in class SchemaRep.ElementExprpublic void validate()
validate in class SchemaRep.ContainsSubElementspublic Map validSubElementTypeMap()
validSubElementTypeMap in class SchemaRep.ContainsSubElementspublic String getAttributeString()
SchemaRep.ContainsSubElementsgetAttributeString in class SchemaRep.ContainsSubElementspublic void readSchema(Element node)
readSchema in class SchemaRep.ElementExprpublic boolean equals(Object o)
equals in class SchemaRep.ContainsSubElementspublic int hashCode()
hashCode in class SchemaRep.ContainsSubElementsCopyright © 2017. All Rights Reserved.