XSOM 20110809-redhat-3

com.sun.xml.xsom.impl
Class AttGroupDeclImpl

java.lang.Object
  extended by com.sun.xml.xsom.impl.ComponentImpl
      extended by com.sun.xml.xsom.impl.AttributesHolder
          extended by com.sun.xml.xsom.impl.AttGroupDeclImpl
All Implemented Interfaces:
XSAttContainer, XSAttGroupDecl, XSComponent, XSDeclaration

public class AttGroupDeclImpl
extends AttributesHolder
implements XSAttGroupDecl


Field Summary
 
Fields inherited from class com.sun.xml.xsom.impl.AttributesHolder
attGroups, attributes, prohibitedAtts
 
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
 
Constructor Summary
AttGroupDeclImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name)
           
AttGroupDeclImpl(SchemaDocumentImpl _parent, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, String _name, WildcardImpl _wildcard)
           
 
Method Summary
 Object apply(XSFunction function)
          Accepts a functor.
 XSAttributeUse getAttributeUse(String nsURI, String localName)
          Looks for the attribute use with the specified name from all the attribute uses that are directly/indirectly referenced from this component.
 XSWildcard getAttributeWildcard()
           
 String getName()
          Gets the (local) name of the declaration.
 String getTargetNamespace()
          Target namespace to which this component belongs.
 boolean isAnonymous()
          Deprecated.  
 boolean isGlobal()
          Returns true if this declaration is a global declaration.
 boolean isLocal()
          Returns true if this declaration is a local declaration.
 void redefine(AttGroupDeclImpl ag)
           
 void setWildcard(WildcardImpl wc)
          set the local wildcard.
 void visit(XSVisitor visitor)
          Accepts a visitor.
 
Methods inherited from class com.sun.xml.xsom.impl.AttributesHolder
addAttGroup, addAttributeUse, addProhibitedAttribute, getAttGroups, getAttributeUses, getDeclaredAttributeUse, getDeclaredAttributeUses, iterateAttGroups, iterateAttributeUses, iterateDeclaredAttributeUses
 
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.XSAttContainer
getAttGroups, getAttributeUses, getDeclaredAttributeUse, getDeclaredAttributeUses, iterateAttGroups, iterateAttributeUses, iterateDeclaredAttributeUses
 
Methods inherited from interface com.sun.xml.xsom.XSDeclaration
getName, getTargetNamespace, isAnonymous, isGlobal, isLocal
 
Methods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
 

Constructor Detail

AttGroupDeclImpl

public AttGroupDeclImpl(SchemaDocumentImpl _parent,
                        AnnotationImpl _annon,
                        Locator _loc,
                        ForeignAttributesImpl _fa,
                        String _name,
                        WildcardImpl _wildcard)

AttGroupDeclImpl

public AttGroupDeclImpl(SchemaDocumentImpl _parent,
                        AnnotationImpl _annon,
                        Locator _loc,
                        ForeignAttributesImpl _fa,
                        String _name)
Method Detail

setWildcard

public void setWildcard(WildcardImpl wc)
Description copied from class: AttributesHolder
set the local wildcard.

Specified by:
setWildcard in class AttributesHolder

getAttributeWildcard

public XSWildcard getAttributeWildcard()
Specified by:
getAttributeWildcard in interface XSAttContainer

getAttributeUse

public XSAttributeUse getAttributeUse(String nsURI,
                                      String localName)
Description copied from interface: XSAttContainer
Looks for the attribute use with the specified name from all the attribute uses that are directly/indirectly referenced from this component.

This is the exact implementation of the "attribute use" schema component.

Specified by:
getAttributeUse in interface XSAttContainer

redefine

public void redefine(AttGroupDeclImpl ag)

visit

public void visit(XSVisitor visitor)
Description copied from interface: XSComponent
Accepts a visitor.

Specified by:
visit in interface XSComponent

apply

public Object apply(XSFunction function)
Description copied from interface: XSComponent
Accepts a functor.

Specified by:
apply in interface XSComponent

getName

public String getName()
Description copied from interface: XSDeclaration
Gets the (local) name of the declaration.

Specified by:
getName in interface XSDeclaration
Returns:
null if this component is anonymous.

getTargetNamespace

public String getTargetNamespace()
Description copied from interface: XSDeclaration
Target namespace to which this component belongs. "" is used to represent the default no namespace.

Specified by:
getTargetNamespace in interface XSDeclaration

isAnonymous

public boolean isAnonymous()
Deprecated. 

Specified by:
isAnonymous in interface XSDeclaration

isGlobal

public final boolean isGlobal()
Description copied from interface: XSDeclaration
Returns true if this declaration is a global declaration. Global declarations are those declaration that can be enumerated through the schema object.

Specified by:
isGlobal in interface XSDeclaration

isLocal

public final boolean isLocal()
Description copied from interface: XSDeclaration
Returns true if this declaration is a local declaration. Equivalent of !isGlobal()

Specified by:
isLocal in interface XSDeclaration

XSOM 20110809-redhat-3

Copyright © 2012 Oracle. All Rights Reserved.