org.apache.ws.jaxme.generator.sg

Interface AttributeSG

All Superinterfaces:
SGItem
Known Implementing Classes:
AttributeSGImpl

public interface AttributeSG
extends SGItem

A source generator for attributes.
Author:
Jochen Wiedmann

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.
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.
TypeSG
getTypeSG()
Returns the attributes type.
boolean
isRequired()
Returns whether the attribute is required.
boolean
isWildcard()
Returns whether this is a "wildcard" attribute.
Object
newPropertySGChain()
Creates a new instance of PropertySGChain.

Methods inherited from interface org.apache.ws.jaxme.generator.sg.SGItem

getFactory, getLocator, getSchema, init

Method Details

forAllNonNullValues

public void forAllNonNullValues(JavaMethod pMethod,
                                DirectAccessible pElement,
                                SGlet pSGlet)
            throws SAXException
Invokes the given SGlet on any non null attribute value.

forAllValues

public void forAllValues(JavaMethod pMethod,
                         DirectAccessible pElement,
                         SGlet pSGlet)
            throws SAXException
Invokes the given SGlet on any attribute value, assuming they are non-null.

getName

public XsQName getName()
Returns the attribute name.

getNamespaceList

public XsNamespaceList getNamespaceList()
If this is a "wildcard" attribute: Returns the namespace list.

getProcessContents

public XsTWildcard.ProcessContents getProcessContents()
If this is a "wildcard" attribute: Returns how to process unknown attributes.

getPropertySG

public PropertySG getPropertySG()
Returns an instance of PropertySG.

getTypeSG

public TypeSG getTypeSG()
Returns the attributes type.

isRequired

public boolean isRequired()
Returns whether the attribute is required.

isWildcard

public boolean isWildcard()
Returns whether this is a "wildcard" attribute.

newPropertySGChain

public Object newPropertySGChain()