Package com.sun.xml.xsom.impl
Class AttributesHolder
java.lang.Object
com.sun.xml.xsom.impl.ComponentImpl
com.sun.xml.xsom.impl.AttributesHolder
- All Implemented Interfaces:
XSComponent,XSDeclaration
- Direct Known Subclasses:
AttGroupDeclImpl,ComplexTypeImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<Ref.AttGroup>Ref.AttGroups that are directly refered from this.protected final Map<UName,AttributeUseImpl> Local attribute use.prohibited attributes.Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAttributesHolder(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAttributeUse(UName name, AttributeUseImpl a) voidaddProhibitedAttribute(UName name) Returns the attribute uses by looking at attribute groups and etc.getDeclaredAttributeUse(String nsURI, String localName) getName()Gets the (local) name of the declaration.Target namespace to which this component belongs.booleanDeprecated.final booleanisGlobal()Returns true if this declaration is a global declaration.final booleanisLocal()Returns true if this declaration is a local declaration.abstract voidset the local wildcard.Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, visit
-
Field Details
-
attributes
Local attribute use. Use linked hash map to guarantee the iteration order, and make it close to what was in the schema document. -
prohibitedAtts
prohibited attributes. -
attGroups
Ref.AttGroups that are directly refered from this.
-
-
Constructor Details
-
AttributesHolder
protected AttributesHolder(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator loc, ForeignAttributesImpl _fa, String _name, boolean _anonymous)
-
-
Method Details
-
setWildcard
set the local wildcard. -
addAttributeUse
-
addProhibitedAttribute
-
getAttributeUses
Returns the attribute uses by looking at attribute groups and etc. Searching for the base type is done inComplexTypeImpl. -
iterateAttributeUses
-
getDeclaredAttributeUse
-
iterateDeclaredAttributeUses
-
getDeclaredAttributeUses
-
addAttGroup
-
iterateAttGroups
-
getAttGroups
-
getName
Description copied from interface:XSDeclarationGets the (local) name of the declaration.- Specified by:
getNamein interfaceXSDeclaration- Returns:
- null if this component is anonymous.
-
getTargetNamespace
Description copied from interface:XSDeclarationTarget namespace to which this component belongs.""is used to represent the default no namespace.- Specified by:
getTargetNamespacein interfaceXSDeclaration
-
isAnonymous
public boolean isAnonymous()Deprecated.- Specified by:
isAnonymousin interfaceXSDeclaration
-
isGlobal
public final boolean isGlobal()Description copied from interface:XSDeclarationReturns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.- Specified by:
isGlobalin interfaceXSDeclaration
-
isLocal
public final boolean isLocal()Description copied from interface:XSDeclarationReturns true if this declaration is a local declaration. Equivalent of!isGlobal()- Specified by:
isLocalin interfaceXSDeclaration
-