com.format.xml.schema
API has been deprecated. Instead, use the com.format.xml.bind.schema
API.public abstract class ALcdXMLTypedVisitorBasedElementAdapter extends ALcdXMLVisitorBasedElementAdapter implementsILcdXMLElementAdapter
ILcdXMLElementAdapter
, facilitating
the implementation of custom XML adapters and offering support for XML type inheritance,
based on schema information.
Typically, when extending this class, the following methods need to be overwritten:
ILcdXMLElementAdapter
interface are implemented by this adapter using delegation to the visit...() methods. These methods
should normally not be overwritten.
This adapter is considered as the default typed element adapter class to extend from,
offering an easy and compact implementation, and excellent serial access performance.Constructor and Description |
---|
ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider,
ILcdXMLElementNameProvider aElementNameProvider,
ILcdXMLSchemaProvider aSchemaProvider,
TLcdXMLName aTypeName)
Deprecated.
Constructs an
ALcdXMLTypedVisitorBasedElementAdapter for a global type. |
ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider,
ILcdXMLSchemaProvider aSchemaProvider,
TLcdXMLName aTypeName,
TLcdXMLName aElementName)
Deprecated.
Constructs an
ALcdXMLTypedVisitorBasedElementAdapter for a global type, with a fixed
element name. |
ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider,
ILcdXMLSchemaProvider aSchemaProvider,
TLcdXMLName aTypeName,
TLcdXMLName[] aElementNameStack)
Deprecated.
Constructs an
ALcdXMLTypedElementAdapter for an anonymous type. |
Modifier and Type | Method and Description |
---|---|
TLcdXMLName |
getName(ILcdXMLNameStack aNameStack,
ILcdXMLObjectStack aObjectStack,
TLcdXMLName aSubstitutionGroup,
Object aObject)
Deprecated.
Returns the name of the object specified by the given name/object stack, substitution group
and object.
|
TLcdXMLSchemaType |
getType()
Deprecated.
Returns the XML Schema type this adapter is written for.
|
protected TLcdXMLSchemaUtil |
getXMLSchemaUtil()
Deprecated.
Returns an XML util instance, initialized with the proper schema provider.
|
void |
visitAttributes(ILcdXMLEditableNameStack aNameStack,
ILcdXMLEditableObjectStack aObjectStack,
ILcdXMLElementVisitor aElementVisitor,
ILcdXMLDocumentContext aDocumentContext)
Deprecated.
Visits the attributes of the element, specified by the given name and object stack .
|
void |
visitContents(ILcdXMLEditableNameStack aNameStack,
ILcdXMLEditableObjectStack aObjectStack,
ILcdXMLElementVisitor aElementVisitor,
ILcdXMLDocumentContext aDocumentContext)
Deprecated.
Visits the contents of the element, specified by the given name and object stack .
|
void |
visitElement(ILcdXMLEditableNameStack aNameStack,
ILcdXMLEditableObjectStack aObjectStack,
TLcdXMLName aSubstitutionGroup,
Object aObject,
ILcdXMLElementVisitor aElementVisitor,
ILcdXMLDocumentContext aDocumentContext)
Deprecated.
Visits the given element.
|
void |
visitTypeAttributes(ILcdXMLEditableNameStack aNameStack,
ILcdXMLEditableObjectStack aObjectStack,
ILcdXMLElementVisitor aVisitor,
ILcdXMLDocumentContext aDocumentContext)
Deprecated.
Visits all attributes that are specific to the XML Schema type for which this adapter was written.
|
void |
visitTypeContents(ILcdXMLEditableNameStack aNameStack,
ILcdXMLEditableObjectStack aObjectStack,
ILcdXMLElementVisitor aVisitor,
ILcdXMLDocumentContext aDocumentContext)
Deprecated.
Visits all contents that are specific to the XML Schema type for which this adapter was written.
|
getAttributeCount, getAttributeName, getAttributeValue, getAttributeValue, getAttributeValueAsString, getAttributeValueAsString, getContent, getContent, getContentAdapter, getContentAdapter, getContentAsString, getContentAsString, getContentCount, getContentCount, getContentName, getElementAdapterProvider, getElementNameProvider, isPrimitiveContent, visitContent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributeCount, getAttributeName, getAttributeValue, getAttributeValue, getAttributeValueAsString, getAttributeValueAsString, getContent, getContent, getContentAdapter, getContentAdapter, getContentAsString, getContentAsString, getContentCount, getContentCount, getContentName, isPrimitiveContent
public ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider, ILcdXMLElementNameProvider aElementNameProvider, ILcdXMLSchemaProvider aSchemaProvider, TLcdXMLName aTypeName)
ALcdXMLTypedVisitorBasedElementAdapter
for a global type.aElementAdapterProvider
- the element adapter provider to which adapter requests should be
forwarded.aElementNameProvider
- the element name provider to which naming requests should be
forwarded.aSchemaProvider
- the schema provider to which schema requests should be
forwarded.aTypeName
- the XML type name for which this adapter is written.public ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider, ILcdXMLSchemaProvider aSchemaProvider, TLcdXMLName aTypeName, TLcdXMLName aElementName)
ALcdXMLTypedVisitorBasedElementAdapter
for a global type, with a fixed
element name.aElementAdapterProvider
- the element adapter provider to which adapter requests should be
forwarded.aSchemaProvider
- the schema provider to which schema requests should be
forwarded.aTypeName
- the XML type name for which this adapter is written.aElementName
- the XML element name to be returned for elements handled by this
adapter. No ILcdXMLElementNameProvider
will be used
for look-up of the name.public ALcdXMLTypedVisitorBasedElementAdapter(ILcdXMLTypedElementAdapterProvider aElementAdapterProvider, ILcdXMLSchemaProvider aSchemaProvider, TLcdXMLName aTypeName, TLcdXMLName[] aElementNameStack)
ALcdXMLTypedElementAdapter
for an anonymous type.aElementAdapterProvider
- the element adapter provider to which adapter requests should be
forwarded.aSchemaProvider
- the schema provider to which schema requests should be
forwarded.aTypeName
- the XML type in which the following namestack is defined.aElementNameStack
- the XML element namestack, pointing to the type for which this
adapter is written.public TLcdXMLName getName(ILcdXMLNameStack aNameStack, ILcdXMLObjectStack aObjectStack, TLcdXMLName aSubstitutionGroup, Object aObject)
ILcdXMLElementAdapter
getName
in interface ILcdXMLElementAdapter
getName
in class ALcdXMLVisitorBasedElementAdapter
aNameStack
- the XML name stack, identifying the XML element to be inspected.aObjectStack
- the XML object stack, identifying the XML element to be inspected.aSubstitutionGroup
- the substitution group the returned element should belong to, if
there is one (null
otherwise).aObject
- the element for which to return a name.public void visitElement(ILcdXMLEditableNameStack aNameStack, ILcdXMLEditableObjectStack aObjectStack, TLcdXMLName aSubstitutionGroup, Object aObject, ILcdXMLElementVisitor aElementVisitor, ILcdXMLDocumentContext aDocumentContext) throws TLcdXMLInterruptedException
ILcdXMLElementAdapter
ILcdXMLElementVisitor
interface documentation contains a detailed description
of how an XML element needs to be visited.visitElement
in interface ILcdXMLElementAdapter
visitElement
in class ALcdXMLVisitorBasedElementAdapter
aNameStack
- the XML name stack, identifying the XML element to be visited.aObjectStack
- the XML object stack, identifying the XML element to be visited.aSubstitutionGroup
- the element name or substitution group of the element to be visitedaObject
- the lement to be visitedaElementVisitor
- the element visitor which is called by this visitable.aDocumentContext
- the XML document contextTLcdXMLInterruptedException
- if the visit action has been interrupted.ILcdXMLElementVisitor
public void visitAttributes(ILcdXMLEditableNameStack aNameStack, ILcdXMLEditableObjectStack aObjectStack, ILcdXMLElementVisitor aElementVisitor, ILcdXMLDocumentContext aDocumentContext) throws TLcdXMLInterruptedException
ILcdXMLElementAdapter
visitAttributes
in interface ILcdXMLElementAdapter
visitAttributes
in class ALcdXMLVisitorBasedElementAdapter
aNameStack
- the XML name stack, identifying the XML element to be visited.aObjectStack
- the XML object stack, identifying the XML element to be visited.aElementVisitor
- the element visitor which is called by this visitable.aDocumentContext
- the XML document contextTLcdXMLInterruptedException
- if the visit action has been interrupted.ILcdXMLElementVisitor
public void visitContents(ILcdXMLEditableNameStack aNameStack, ILcdXMLEditableObjectStack aObjectStack, ILcdXMLElementVisitor aElementVisitor, ILcdXMLDocumentContext aDocumentContext) throws TLcdXMLInterruptedException
ILcdXMLElementAdapter
visitContents
in interface ILcdXMLElementAdapter
visitContents
in class ALcdXMLVisitorBasedElementAdapter
aNameStack
- the XML name stack, identifying the XML element to be visited.aObjectStack
- the XML object stack, identifying the XML element to be visited.aElementVisitor
- the element visitor which is called by this visitable.aDocumentContext
- the XML document contextTLcdXMLInterruptedException
- if the visit action has been interrupted.ILcdXMLElementVisitor
public void visitTypeAttributes(ILcdXMLEditableNameStack aNameStack, ILcdXMLEditableObjectStack aObjectStack, ILcdXMLElementVisitor aVisitor, ILcdXMLDocumentContext aDocumentContext) throws TLcdXMLInterruptedException
aNameStack
- the name stack, containing all XML element names with the name of the element to
be inspected on top.aObjectStack
- the object stack, containing all objects with the object to be inspected on top.aVisitor
- the XML element visitor that is visiting the objectaDocumentContext
- the XML document contextTLcdXMLInterruptedException
- if the visit action was interrupted.public void visitTypeContents(ILcdXMLEditableNameStack aNameStack, ILcdXMLEditableObjectStack aObjectStack, ILcdXMLElementVisitor aVisitor, ILcdXMLDocumentContext aDocumentContext) throws TLcdXMLInterruptedException
aNameStack
- the name stack, containing all XML element names with the name of the element to
be inspected on top.aObjectStack
- the object stack, containing all objects with the object to be inspected on top.aVisitor
- the XML element visitor that is visiting the objectaDocumentContext
- the XML document contextTLcdXMLInterruptedException
- if the visit action was interrupted.protected TLcdXMLSchemaUtil getXMLSchemaUtil()
public TLcdXMLSchemaType getType()