Package com.sun.xml.xsom.impl
Class FacetImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.ComponentImpl
-
- com.sun.xml.xsom.impl.FacetImpl
-
- All Implemented Interfaces:
XSComponent
,XSFacet
public class FacetImpl extends ComponentImpl implements XSFacet
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
fixed
private java.lang.String
name
private XmlString
value
-
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
-
Fields inherited from interface com.sun.xml.xsom.XSFacet
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 Summary
Constructors Constructor Description FacetImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, java.lang.String _name, XmlString _value, boolean _fixed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
-
-
-
-
Field Detail
-
name
private final java.lang.String name
-
value
private final XmlString value
-
fixed
private boolean fixed
-
-
Constructor Detail
-
FacetImpl
public FacetImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, org.xml.sax.Locator _loc, ForeignAttributesImpl _fa, java.lang.String _name, XmlString _value, boolean _fixed)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:XSFacet
Gets the name of the facet, such as "length".
-
getValue
public XmlString getValue()
Description copied from interface:XSFacet
Gets the value of the facet.
-
isFixed
public boolean isFixed()
Description copied from interface:XSFacet
Returns true if this facet is "fixed".
-
visit
public void visit(XSVisitor visitor)
Description copied from interface:XSComponent
Accepts a visitor.- Specified by:
visit
in interfaceXSComponent
-
apply
public java.lang.Object apply(XSFunction function)
Description copied from interface:XSComponent
Accepts a functor.- Specified by:
apply
in interfaceXSComponent
-
-