public class ListSimpleTypeImpl extends SimpleTypeImpl implements XSListSimpleType
ownerDocument
EXTENSION, RESTRICTION, SUBSTITUTION
Constructor and Description |
---|
ListSimpleTypeImpl(SchemaDocumentImpl _parent,
AnnotationImpl _annon,
Locator _loc,
ForeignAttributesImpl _fa,
String _name,
boolean _anonymous,
Set<XSVariety> finalSet,
Ref.SimpleType _itemType) |
Modifier and Type | Method and Description |
---|---|
Object |
apply(XSSimpleTypeFunction function) |
XSListSimpleType |
asList() |
XSListSimpleType |
getBaseListType()
Gets the nearest ancestor
XSListSimpleType (including itself)
if the variety of this type is list . |
XSFacet |
getFacet(String name)
Gets the effective facet object of the given name.
|
List<XSFacet> |
getFacets(String name)
For multi-valued facets (enumeration and pattern), obtain all values.
|
XSSimpleType |
getItemType() |
String |
getName()
Gets the (local) name of the declaration.
|
XSSimpleType |
getPrimitiveType()
Gets the ancestor primitive
XSSimpleType if
this type is atomic . |
String |
getTargetNamespace()
Target namespace to which this component belongs.
|
XSVariety |
getVariety()
Gets the variety of this simple type.
|
boolean |
isAnonymous()
Deprecated.
|
boolean |
isGlobal()
Returns true if this declaration is a global declaration.
|
boolean |
isList()
Returns true if
this instanceof XSListSimpleType . |
boolean |
isLocal()
Returns true if this declaration is a local declaration.
|
void |
visit(XSSimpleTypeVisitor visitor) |
apply, apply, asComplexType, asEmpty, asParticle, asRestriction, asSimpleType, asUnion, getBaseType, getBaseUnionType, getContentType, getDerivationMethod, getRedefinedBy, getRedefinedCount, getSimpleBaseType, getType, isComplexType, isDerivedFrom, isFinal, isPrimitive, isRestriction, isSimpleType, isUnion, listSubstitutables, redefine, visit, visit
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asRestriction, asUnion, getBaseUnionType, getRedefinedBy, getSimpleBaseType, isFinal, isPrimitive, isRestriction, isUnion
asComplexType, asSimpleType, getBaseType, getDerivationMethod, getRedefinedCount, isComplexType, isDerivedFrom, isSimpleType, listSubstitutables
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
apply, asEmpty, asParticle, asSimpleType, visit
public ListSimpleTypeImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous, Set<XSVariety> finalSet, Ref.SimpleType _itemType)
public XSSimpleType getItemType()
getItemType
in interface XSListSimpleType
public void visit(XSSimpleTypeVisitor visitor)
visit
in interface XSSimpleType
public Object apply(XSSimpleTypeFunction function)
apply
in interface XSSimpleType
public XSFacet getFacet(String name)
XSSimpleType
For example, if a simple type "foo" is derived from xs:string by restriction with the "maxLength" facet and another simple type "bar" is derived from "foo" by restriction with another "maxLength" facet, this method will return the latter one, because that is the most restrictive, effective facet.
For those facets that can have multiple values (pattern facets and enumeration facets), this method will return only the first one. TODO: allow clients to access all of them by some means.
getFacet
in interface XSSimpleType
public List<XSFacet> getFacets(String name)
XSSimpleType
getFacets
in interface XSSimpleType
XSSimpleType.getFacet(String)
public XSVariety getVariety()
XSSimpleType
getVariety
in interface XSSimpleType
public XSSimpleType getPrimitiveType()
XSSimpleType
XSSimpleType
if
this type is atomic
.getPrimitiveType
in interface XSSimpleType
public XSListSimpleType getBaseListType()
XSSimpleType
XSListSimpleType
(including itself)
if the variety of this type is list
.getBaseListType
in interface XSSimpleType
getBaseListType
in class SimpleTypeImpl
public boolean isList()
XSSimpleType
this instanceof XSListSimpleType
.isList
in interface XSSimpleType
isList
in class SimpleTypeImpl
public XSListSimpleType asList()
asList
in interface XSSimpleType
asList
in class SimpleTypeImpl
public String getName()
XSDeclaration
getName
in interface XSDeclaration
public String getTargetNamespace()
XSDeclaration
""
is used to represent the default no namespace.getTargetNamespace
in interface XSDeclaration
public boolean isAnonymous()
isAnonymous
in interface XSDeclaration
public final boolean isGlobal()
XSDeclaration
isGlobal
in interface XSDeclaration
public final boolean isLocal()
XSDeclaration
!isGlobal()
isLocal
in interface XSDeclaration
Copyright © 2021 JBoss by Red Hat. All rights reserved.