org.apache.ws.jaxme.generator.sg

Interface AttributeSG

public interface AttributeSG extends SGItem

A source generator for attributes.

Author: Jochen Wiedmann

Method Summary
voidforAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)

Invokes the given {@link SGlet} on any non null attribute value.

voidforAllValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)

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

XsQNamegetName()

Returns the attribute name.

XsNamespaceListgetNamespaceList()

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

XsTWildcard.ProcessContentsgetProcessContents()

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

PropertySGgetPropertySG()

Returns an instance of {@link org.apache.ws.jaxme.generator.sg.PropertySG}.

TypeSGgetTypeSG()

Returns the attributes type.

booleanisRequired()

Returns whether the attribute is required.

booleanisWildcard()

Returns whether this is a "wildcard" attribute.

ObjectnewPropertySGChain()

Creates a new instance of {@link org.apache.ws.jaxme.generator.sg.PropertySGChain}.

Method Detail

forAllNonNullValues

public void forAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)

Invokes the given {@link SGlet} on any non null attribute value.

forAllValues

public void forAllValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet)

Invokes the given {@link 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 {@link org.apache.ws.jaxme.generator.sg.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()

Creates a new instance of {@link org.apache.ws.jaxme.generator.sg.PropertySGChain}.