public class AttributeSGImpl extends java.lang.Object implements AttributeSG, SGItem
| Constructor and Description |
|---|
AttributeSGImpl(AttributeSGChain o) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public AttributeSGImpl(AttributeSGChain o)
public XsQName getName()
AttributeSGReturns the attribute name.
getName in interface AttributeSGpublic boolean isRequired()
AttributeSGReturns whether the attribute is required.
isRequired in interface AttributeSGpublic void forAllValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet) throws org.xml.sax.SAXException
AttributeSGInvokes the given SGlet on any attribute value,
assuming they are non-null.
forAllValues in interface AttributeSGorg.xml.sax.SAXExceptionpublic void forAllNonNullValues(JavaMethod pMethod, DirectAccessible pElement, SGlet pSGlet) throws org.xml.sax.SAXException
AttributeSGInvokes the given SGlet on any non null attribute
value.
forAllNonNullValues in interface AttributeSGorg.xml.sax.SAXExceptionpublic java.lang.Object newPropertySGChain()
AttributeSGCreates a new instance of PropertySGChain.
newPropertySGChain in interface AttributeSGpublic PropertySG getPropertySG()
AttributeSGReturns an instance of PropertySG.
getPropertySG in interface AttributeSGpublic TypeSG getTypeSG()
AttributeSGReturns the attributes type.
getTypeSG in interface AttributeSGpublic boolean isWildcard()
AttributeSGReturns whether this is a "wildcard" attribute.
isWildcard in interface AttributeSGpublic XsNamespaceList getNamespaceList()
AttributeSGIf this is a "wildcard" attribute: Returns the namespace list.
getNamespaceList in interface AttributeSGpublic XsTWildcard.ProcessContents getProcessContents()
AttributeSGIf this is a "wildcard" attribute: Returns how to process unknown attributes.
getProcessContents in interface AttributeSGpublic SGFactory getFactory()
SGItemReturns the factory that created this item.
getFactory in interface SGItempublic SchemaSG getSchema()
SGItemReturns the items schema.
public org.xml.sax.Locator getLocator()
SGItemReturns the items location in the schema; useful for error messages.
getLocator in interface SGItempublic void init()
throws org.xml.sax.SAXException
SGItemInitializes the item.
public AttributeSGChain getHeadOfChain()