public class FacetImpl extends ComponentImpl implements XSFacet
Modifier and Type | Field and Description |
---|---|
private boolean |
fixed |
private java.lang.String |
name |
private XmlString |
value |
ownerDocument
FACET_ENUMERATION, FACET_FRACTIONDIGITS, FACET_LENGTH, FACET_MAXEXCLUSIVE, FACET_MAXINCLUSIVE, FACET_MAXLENGTH, FACET_MINEXCLUSIVE, FACET_MININCLUSIVE, FACET_MINLENGTH, FACET_PATTERN, FACET_TOTALDIGITS, FACET_WHITESPACE
Constructor and Description |
---|
FacetImpl(SchemaDocumentImpl owner,
AnnotationImpl _annon,
org.xml.sax.Locator _loc,
ForeignAttributesImpl _fa,
java.lang.String _name,
XmlString _value,
boolean _fixed) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
apply(XSFunction function)
Accepts a functor.
|
java.lang.String |
getName()
Gets the name of the facet, such as "length".
|
XmlString |
getValue()
Gets the value of the facet.
|
boolean |
isFixed()
Returns true if this facet is "fixed".
|
void |
visit(XSVisitor visitor)
Accepts a visitor.
|
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
private final java.lang.String name
private final XmlString value
private boolean fixed
public FacetImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, java.lang.String _name, XmlString _value, boolean _fixed)
public java.lang.String getName()
XSFacet
public XmlString getValue()
XSFacet
public boolean isFixed()
XSFacet
public void visit(XSVisitor visitor)
XSComponent
visit
in interface XSComponent
public java.lang.Object apply(XSFunction function)
XSComponent
apply
in interface XSComponent