|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.xml.schema.Facet
org.idoox.xml.schema.Facet.FixableFacet
A fixable facet is such a facet which supports the fixed attribute.
Nested Class Summary |
Nested classes inherited from class org.idoox.xml.schema.Facet |
Facet.Enumeration, Facet.FacetEnum, Facet.FixableFacet, Facet.FractionDigits, Facet.Length, Facet.MaxExclusive, Facet.MaxInclusive, Facet.MaxLength, Facet.MinExclusive, Facet.MinInclusive, Facet.MinLength, Facet.Pattern, Facet.TotalDigits, Facet.WhiteSpace |
Field Summary | |
protected boolean |
fixed
whether the value if fixed - cannot be changed in descendants |
Fields inherited from class org.idoox.xml.schema.Facet |
name, value |
Constructor Summary | |
protected |
Facet.FixableFacet(java.lang.String name,
java.lang.String value,
boolean fixed)
Creates new instance of a fixable facet. |
Method Summary | |
boolean |
isFixed()
Returns whether the given facet is fixed - its value cannot be changed in descendants. |
java.lang.String |
toString()
Returns stringified representation of this facet. |
protected void |
writeInnerXMLContent(TokenWriter writer)
This implementation writes the value of the fixed attribute and then calls a customizable routine writeInnerXMLContent2(org.idoox.xml.TokenWriter) . |
protected void |
writeInnerXMLContent2(TokenWriter writer)
Customizes the content of the enclosing xml tag representing the recent fixable facet. |
Methods inherited from class org.idoox.xml.schema.Facet |
equals, getName, getValue, hashCode, writeAsXML |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final boolean fixed
Constructor Detail |
protected Facet.FixableFacet(java.lang.String name, java.lang.String value, boolean fixed) throws SchemaException
name
- name of the facet (identified its type)value
- value of the facet (constrains the value or lexical space of a type)fixed
- value of the fixed attribute
SchemaException
- if the validation of the given parameters fails
(some attributes missing or have incorrect value)Method Detail |
public boolean isFixed()
public java.lang.String toString()
toString
in class Facet
protected final void writeInnerXMLContent(TokenWriter writer) throws java.io.IOException
writeInnerXMLContent2(org.idoox.xml.TokenWriter)
.
writeInnerXMLContent
in class Facet
writer
- writer to use when writing the xml content
java.io.IOException
- no commentprotected void writeInnerXMLContent2(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 |