org.apache.ws.jaxme.generator.sg.impl
Class AttributeSGImpl

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.AttributeSGImpl
All Implemented Interfaces:
AttributeSG, SGItem

public class AttributeSGImpl
extends java.lang.Object
implements AttributeSG, SGItem


Constructor Summary
AttributeSGImpl(AttributeSGChain o)
           
 
Method Summary
 void forAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)
          Invokes the given SGlet on any non null attribute value.
 void forAllValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)
          Invokes the given SGlet on any attribute value, assuming they are non-null.
 SGFactory getFactory()
          Returns the factory that created this item.
 AttributeSGChain getHeadOfChain()
           
 org.xml.sax.Locator getLocator()
          Returns the items location in the schema; useful for error messages.
 XsQName getName()
          Returns the attribute name.
 XsNamespaceList getNamespaceList()
          If this is a "wildcard" attribute: Returns the namespace list.
 XsTWildcard.ProcessContents getProcessContents()
          If this is a "wildcard" attribute: Returns how to process unknown attributes.
 PropertySG getPropertySG()
          Returns an instance of PropertySG.
 SchemaSG getSchema()
          Returns the items schema.
 TypeSG getTypeSG()
          Returns the attributes type.
 void init()
          Initializes the item.
 boolean isRequired()
          Returns whether the attribute is required.
 boolean isWildcard()
          Returns whether this is a "wildcard" attribute.
 java.lang.Object newPropertySGChain()
          Creates a new instance of PropertySGChain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSGImpl

public AttributeSGImpl(AttributeSGChain o)
Method Detail

getName

public XsQName getName()
Description copied from interface: AttributeSG

Returns the attribute name.

Specified by:
getName in interface AttributeSG

isRequired

public boolean isRequired()
Description copied from interface: AttributeSG

Returns whether the attribute is required.

Specified by:
isRequired in interface AttributeSG

forAllValues

public void forAllValues(JavaMethod pMethod,
                         DirectAccessible pElement,
                         SGlet pSGlet)
                  throws org.xml.sax.SAXException
Description copied from interface: AttributeSG

Invokes the given SGlet on any attribute value, assuming they are non-null.

Specified by:
forAllValues in interface AttributeSG
Throws:
org.xml.sax.SAXException

forAllNonNullValues

public void forAllNonNullValues(JavaMethod pMethod,
                                DirectAccessible pElement,
                                SGlet pSGlet)
                         throws org.xml.sax.SAXException
Description copied from interface: AttributeSG

Invokes the given SGlet on any non null attribute value.

Specified by:
forAllNonNullValues in interface AttributeSG
Throws:
org.xml.sax.SAXException

newPropertySGChain

public java.lang.Object newPropertySGChain()
Description copied from interface: AttributeSG

Creates a new instance of PropertySGChain.

Specified by:
newPropertySGChain in interface AttributeSG

getPropertySG

public PropertySG getPropertySG()
Description copied from interface: AttributeSG

Returns an instance of PropertySG.

Specified by:
getPropertySG in interface AttributeSG

getTypeSG

public TypeSG getTypeSG()
Description copied from interface: AttributeSG

Returns the attributes type.

Specified by:
getTypeSG in interface AttributeSG

isWildcard

public boolean isWildcard()
Description copied from interface: AttributeSG

Returns whether this is a "wildcard" attribute.

Specified by:
isWildcard in interface AttributeSG

getNamespaceList

public XsNamespaceList getNamespaceList()
Description copied from interface: AttributeSG

If this is a "wildcard" attribute: Returns the namespace list.

Specified by:
getNamespaceList in interface AttributeSG

getProcessContents

public XsTWildcard.ProcessContents getProcessContents()
Description copied from interface: AttributeSG

If this is a "wildcard" attribute: Returns how to process unknown attributes.

Specified by:
getProcessContents in interface AttributeSG

getFactory

public SGFactory getFactory()
Description copied from interface: SGItem

Returns the factory that created this item.

Specified by:
getFactory in interface SGItem

getSchema

public SchemaSG getSchema()
Description copied from interface: SGItem

Returns the items schema.

Specified by:
getSchema in interface SGItem

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: SGItem

Returns the items location in the schema; useful for error messages.

Specified by:
getLocator in interface SGItem

init

public void init()
          throws org.xml.sax.SAXException
Description copied from interface: SGItem

Initializes the item.

Specified by:
init in interface SGItem
Throws:
org.xml.sax.SAXException

getHeadOfChain

public AttributeSGChain getHeadOfChain()