|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.idoox.xml.schema.Facet
This class represents common base for all facets from XML Schema.
| Nested Class Summary | |
static class |
Facet.Enumeration
This class represents the enumeration XML Schema facet. |
static class |
Facet.FacetEnum
Enumeration of all facets defined in XML Schema. |
static class |
Facet.FixableFacet
A fixable facet is such a facet which supports the fixed attribute. |
static class |
Facet.FractionDigits
This class represents the fractionDigits XML Schema facet. |
static class |
Facet.Length
This class represents the length XML Schema facet. |
static class |
Facet.MaxExclusive
This class represents the maxExclusive XML Schema facet. |
static class |
Facet.MaxInclusive
This class represents the maxInclusive XML Schema facet. |
static class |
Facet.MaxLength
This class represents the maxLength XML Schema facet. |
static class |
Facet.MinExclusive
This class represents the minExclusive XML Schema facet. |
static class |
Facet.MinInclusive
This class represents the minExclusive XML Schema facet. |
static class |
Facet.MinLength
This class represents the minLength XML Schema facet. |
static class |
Facet.Pattern
This class represents the pattern XML Schema facet. |
static class |
Facet.TotalDigits
This class represents the totalDigits XML Schema facet. |
static class |
Facet.WhiteSpace
This class represents the whiteSpace XML Schema facet. |
| Field Summary | |
protected java.lang.String |
name
local name of the facet, e.g. |
protected java.lang.String |
value
lexical value of the facet, i.e. |
| Constructor Summary | |
protected |
Facet(java.lang.String name,
java.lang.String value)
Creates new instance of Facet. |
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns whether the two facets have the same name and contain the same value. |
java.lang.String |
getName()
Returns name of the element that represents this facet (e.g. |
java.lang.String |
getValue()
Returns value of the facet (content of attribute value) |
int |
hashCode()
Returns hashCode of this instance. |
java.lang.String |
toString()
Returns stringified representation of the facet. |
void |
writeAsXML(TokenWriter writer)
Writes representation of this facet into XML stream. |
protected void |
writeInnerXMLContent(TokenWriter writer)
Customizes the content of the enclosing xml tag representing the recent restriction facet. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final java.lang.String name
protected final java.lang.String value
| Constructor Detail |
protected Facet(java.lang.String name,
java.lang.String value)
throws SchemaException
name - name of the facet (identified its type)value - value of the facet (constrains the value or lexical space of a type)
SchemaException - if the validation of the given parameters fails
(some attributes missing or have incorrect value)| Method Detail |
public java.lang.String getName()
public java.lang.String getValue()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object obj)
obj - facet to compare to
public final void writeAsXML(TokenWriter writer)
throws java.io.IOException
writeInnerXMLContent(org.idoox.xml.TokenWriter).
writer - writer to be used
java.io.IOException - no comment
protected void writeInnerXMLContent(TokenWriter writer)
throws java.io.IOException
This implementation is empty.
writer - writer to be used to write into the XML stream
java.io.IOException - no comment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||