public class GetService extends GenericService
getItemAsXML()
can be called to obtain the
instance document.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
GET_SERVICE_OP_NAME |
static java.util.Map |
sTypeToXMLIdentifierMap
A mapping of basic Java types to XML schema type names.
|
static java.lang.String |
XML_NAMESPACE_PREFIX |
static java.lang.String |
XML_SCHEMA_INSTANCE |
static java.lang.String |
XSI_SCHEMA_LOCATION |
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
GetService() |
Modifier and Type | Method and Description |
---|---|
void |
addNamespaceDeclarations(java.lang.StringBuffer pInstanceDoc,
atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
addNamespaceDeclarations(java.io.Writer pInstanceWriter,
atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo)
Adds the namespace declarations for all the item descriptors present
in the RepositoryItem passed.
|
void |
addSchemaLocations(java.lang.StringBuffer pInstanceDoc,
atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
addSchemaLocations(java.io.Writer pInstanceWriter,
atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo)
Adds the schema locations for all the item-descriptors present
in the RepositoryItem passed.
|
void |
appendComplexElement(RepositoryItem pItem,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
appendComplexElement(RepositoryItem pItem,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Method called to generate the appropriate representation of a repository
item for a given repository item.
|
protected void |
appendRepositoryItem(RepositoryItem pItem,
java.lang.String[] pIncludeProperties,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix,
RepositoryItemDescriptor pItemDescriptor)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
appendRepositoryItem(RepositoryItem pItem,
java.lang.String[] pIncludeProperties,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix,
RepositoryItemDescriptor pItemDescriptor,
atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo)
Method called to generate the appropriate representation of a repository
item for an instance document.
|
java.lang.String |
getAdjustedValue(RepositoryPropertyDescriptor pPropertyDesc,
java.lang.String pValue)
Stub method that can be overridden to adjust a property value
before writing to the XML (e.g., mask a credit card number)
|
java.lang.String |
getItemAsXML(RepositoryItem pItem)
Generates XML Instance Document from Repository Item.
|
java.lang.String |
getItemAsXML(RepositoryItem pItem,
java.lang.String pMappingFileName)
Generates XML Instance Document from Repository Item
|
java.lang.String |
getItemAsXML(RepositoryItem pItem,
java.lang.String[] pIncludeProperties)
Generates XML Instance Document from Repository Item
|
java.lang.String |
getItemAsXML(RepositoryItem pItem,
java.lang.String[] pIncludeProperties,
java.lang.String pMappingFileName)
Generates XML Instance Document from Repository Item
|
void |
getItemAsXML(java.io.Writer pXMLOutput,
RepositoryItem pItem)
Generates XML Instance Document from Repository Item.
|
void |
getItemAsXML(java.io.Writer pXMLOutput,
RepositoryItem pItem,
java.lang.String pMappingFileName)
Generates XML Instance Document from Repository Item
|
void |
getItemAsXML(java.io.Writer pXMLOutput,
RepositoryItem pItem,
java.lang.String[] pIncludeProperties)
Generates XML Instance Document from Repository Item
|
void |
getItemAsXML(java.io.Writer pXMLOutput,
RepositoryItem pItem,
java.lang.String[] pIncludeProperties,
java.lang.String pMappingFileName)
Generates XML Instance Document from Repository Item
|
protected atg.repository.xml.ItemDescToNSInfo |
getItemDescToNSInfo(RepositoryItemDescriptor pItemDescriptor)
Populates
ItemDescToNSInfo from RepositoryItemDescriptor |
protected atg.repository.xml.ItemDescToNSInfo |
getItemDescToNSInfo(RepositoryItemDescriptor pItemDescriptor,
java.lang.String pMappingFileName)
Populates
ItemDescToNSInfo from RepositoryItemDescriptor and
mapping file name |
int |
getOutputBufferSize()
Returns Size of the Buffer to use while writing the XML Instance
document.
|
RepositoryXMLTools |
getRepositoryXMLTools()
Returns Tools class.
|
java.lang.String |
getXMLPropertyElementName(RepositoryPropertyDescriptor pPropertyDesc,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pNSPrefix,
java.lang.String pGlobalNSPrefix)
Get the element name to be used in the xml representation of the properties.
|
atg.repository.xml.XMLSchemaManager |
getXMLSchemaManager()
The XMLSchemaManager is used to maintain mapping files and XML Schema
files.
|
protected java.lang.String |
getXMLTypeAttributes(RepositoryPropertyDescriptor pPropDescriptor)
This returns XML type attributes for a given Java type.
|
void |
handleArrayType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleArrayType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Method handleArrayType.
|
void |
handleCollectionType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleCollectionType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Adds xml representation for collection properties.
|
void |
handleComplexArrayType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleComplexArrayType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Handle appending the representation of an array to the instance document.
|
void |
handleComplexCollectionType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleComplexCollectionType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Adds xml representation for items of complex type in collection
properties.
|
void |
handleComplexMapType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleComplexMapType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pNSPrefix,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Adds xml representation for items of complex type in map properties.
|
void |
handleComplexType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleComplexType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Adds xml representation for item-descriptor property type.
|
void |
handleMapType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleMapType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.util.Map pVisitedObjects,
java.lang.String pGlobalNSPrefix)
Adds xml representation for map properties.
|
void |
handleSimpleArrayType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleSimpleArrayType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
java.lang.String pGlobalNSPrefix)
Generate the XML representation of the property value represented by
the pPropertyDesc on the pItem parameter.
|
void |
handleSimpleCollectionType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleSimpleCollectionType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
java.lang.String pGlobalNSPrefix)
Adds xml representation for items of simple type in collection
properties.
|
void |
handleSimpleMapType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
java.lang.String pGlobalNSPrefix)
Adds xml representation for items of simple type in map
properties.
|
protected void |
handleSimpleMapType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
java.lang.String pGlobalNSPrefix)
Adds xml representation for items of simple type in map
properties.
|
void |
handleSimpleType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.lang.StringBuffer pInstanceDoc,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pGlobalNSPrefix)
Deprecated.
We are no longer using
StringBuffer to store
intermediate XML Instance document, we are using Writer instead.
So this method which writes into StringBuffer pInstanceDoc has been deprecated. |
protected void |
handleSimpleType(RepositoryItem pItem,
RepositoryPropertyDescriptor pPropertyDesc,
java.io.Writer pInstanceWriter,
java.lang.String pNSPrefix,
atg.repository.databinding.ItemMappingElement pItemMappingElement,
java.lang.String pGlobalNSPrefix)
Adds simple property to the xml instance doc.
|
boolean |
isAppendRelativeSchemaLocation()
Should the directory name be appended to the XML Schema file name that is written out
in the generated XML.
|
boolean |
isAppendXMLTypeAttributes()
Should ATG XML schema extension attributes appended to RepositoryItem xml tag.
|
protected boolean |
isCircularReference(java.lang.Object pObjectId,
java.util.Map pVisitedObjectMap)
Checks whether the RepositoryItem is already parsed.
|
boolean |
isIndentXMLOutput()
Returns Indicates whether to indent the xml instance document or not.
|
protected boolean |
isNullPropertyValue(RepositoryPropertyDescriptor pPropertyDesc,
java.lang.Object pValue)
Checks whether the property of RepositoryItem is null or not.
|
boolean |
isOmitNullProperties()
Should properties that have a null property be written out.
|
protected void |
markObjectVisited(java.lang.Object pObjectId,
java.util.Map pVisitedObjectMap)
if a RepositoryItem is parsed for the first time, then it
added to the map for future reference
|
protected RepositoryItemDescriptor |
retrieveItemDescriptor(atg.repository.databinding.ItemMappingElement pItemMappingElement,
RepositoryItem pItem)
Retrives the correct ItemDescriptor to use.
|
void |
setAppendRelativeSchemaLocation(boolean pAppendRelativeSchemaLocation)
Sets the mAppendRelativeSchemaLocation.
|
void |
setAppendXMLTypeAttributes(boolean pAppendXMLTypeAttributes)
Sets the mAppendXMLTypeAttributes.
|
void |
setIndentXMLOutput(boolean pIndentXMLOutput)
Sets Indicates whether to indent the xml instance document or not.
|
void |
setOmitNullProperties(boolean pOmitNullProperties)
Sets the omitNullProperties.
|
void |
setOutputBufferSize(int pOutputBufferSize)
Sets Size of the Output Stream Buffer
|
void |
setRepositoryXMLTools(RepositoryXMLTools pRepositoryXMLTools)
Sets Tools class
|
void |
setXMLSchemaManager(atg.repository.xml.XMLSchemaManager pXMLSchemaManager)
Sets XML Schema Manager
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.lang.String GET_SERVICE_OP_NAME
public static final java.lang.String XML_SCHEMA_INSTANCE
public static final java.lang.String XML_NAMESPACE_PREFIX
public static final java.lang.String XSI_SCHEMA_LOCATION
public static final java.util.Map sTypeToXMLIdentifierMap
public RepositoryXMLTools getRepositoryXMLTools()
public void setRepositoryXMLTools(RepositoryXMLTools pRepositoryXMLTools)
RepositoryXMLTools
- public boolean isOmitNullProperties()
public void setOmitNullProperties(boolean pOmitNullProperties)
omitNullProperties
- The omitNullProperties to setpublic boolean isAppendRelativeSchemaLocation()
public void setAppendRelativeSchemaLocation(boolean pAppendRelativeSchemaLocation)
pAppendRelativeSchemaLocation
- The appendRelativeSchemaLocation to setpublic boolean isAppendXMLTypeAttributes()
public void setAppendXMLTypeAttributes(boolean pAppendXMLTypeAttributes)
pAppendXMLTypeAttributes
- The appendXMLTypeAttributes to setpublic atg.repository.xml.XMLSchemaManager getXMLSchemaManager()
public void setXMLSchemaManager(atg.repository.xml.XMLSchemaManager pXMLSchemaManager)
XMLSchemaManager
- public boolean isIndentXMLOutput()
public void setIndentXMLOutput(boolean pIndentXMLOutput)
IndentXMLOutput
- public int getOutputBufferSize()
public void setOutputBufferSize(int pOutputBufferSize)
OutputBufferSize
- public java.lang.String getItemAsXML(RepositoryItem pItem) throws GetException
pItem
- the item to generate a XML instance document for.GetException
- if an error occurspublic java.lang.String getItemAsXML(RepositoryItem pItem, java.lang.String[] pIncludeProperties) throws GetException
pItem
- the item to generate an instance document for.pIncludeProperties
- an array list of properties that should be
included in the generated instance document. All properties not appearing
in this array will be excluded from the generated instance document. Using
this property can be useful if the calling application knows only a subset
of properties on an item changed for example. The values appearing in this
array must be top-level properties on the item.GetException
- if an error occurspublic java.lang.String getItemAsXML(RepositoryItem pItem, java.lang.String pMappingFileName) throws GetException
pItem
- the repository item to generate an instance document forpMappingFileName
- name of a mapping file that should be used to
control how the generated instance document appears. This mapping file
is resolved against the configured Schema manager.String
valueGetException
- if an error occurspublic java.lang.String getItemAsXML(RepositoryItem pItem, java.lang.String[] pIncludeProperties, java.lang.String pMappingFileName) throws GetException
pItem
- the item to generate an instance document forpIncludeProperties
- an array list of properties that should be
included in the generated instance document. All properties not appearing
in this array will be excluded from the generated instance document. Using
this property can be useful if the calling application knows only a subset
of properties on an item changed for example. The values appearing in this
array must be top-level properties on the item.pMappingFileName
- name of a mapping file that should be used to
control how the generated instance document appears. This mapping file
is resolved against the configured Schema manager.GetException
- if an error occursprotected java.lang.String getXMLTypeAttributes(RepositoryPropertyDescriptor pPropDescriptor)
protected void appendRepositoryItem(RepositoryItem pItem, java.lang.String[] pIncludeProperties, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix, RepositoryItemDescriptor pItemDescriptor) throws GetException, RepositoryException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
parameter and calls the appropriate
handleXXX()
methods.pItem
- the item to generate an instance document forpIncludeProperties
- properties to include in the generated instance
documentpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the documentpItemDescriptor
- the item-descriptor backing the item represented
by the pItem
parameter.GetException
- if an error occurs while trying to get an xml
representation for the item pItem.RepositoryException
public void appendComplexElement(RepositoryItem pItem, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the documentGetException
- if an error occurs while trying to get an xml
representation for the item pItem.public void handleSimpleType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pGlobalNSPrefix)
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that an XML representation will be
generated for.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpGlobalNSPrefix
- global NS for the documentGetException
- if an error occurs while trying to get an xml
representation for the item pItem.public void handleComplexType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that a complexType definition willbe
generated forpInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the documentGetException
- if an error occurs while trying to get an xml
representation for the item pItem.GetException
- if an error occurspublic void handleCollectionType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the documentGetException
- if an error occurspublic void handleSimpleCollectionType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, java.lang.String pGlobalNSPrefix)
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpGlobalNSPrefix
- global NS for the documentpublic void handleComplexCollectionType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used for the instance documentGetException
- if an error occurspublic void handleMapType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used for this document.GetException
- if an error occurspublic void handleComplexMapType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used in this document.GetException
- if an error occurspublic void handleSimpleMapType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, java.lang.String pGlobalNSPrefix)
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used in the document.public void handleArrayType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used through out this documentGetException
- if an error occurspublic void handleSimpleArrayType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, java.lang.String pNSPrefix, java.lang.String pGlobalNSPrefix)
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the document
Method handleSimpleArrayType.pGlobalNSPrefix
- the global namespace used in the documentpublic void handleComplexArrayType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.lang.StringBuffer pInstanceDoc, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global namespace used through-out the documentGetException
- if an error occurspublic void addSchemaLocations(java.lang.StringBuffer pInstanceDoc, atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo)
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pInstanceDoc
- the instance documentpItemDescToNSInfoMap
- map contain namespace information used
in the generation of this instance document.public void addNamespaceDeclarations(java.lang.StringBuffer pInstanceDoc, atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo)
StringBuffer
to store
intermediate XML Instance document, we are using Writer
instead.
So this method which writes into StringBuffer pInstanceDoc
has been deprecated.pInstanceDoc
- the instance documentpItemDescToNSInfoMap
- list of item-descriptor namespace informationprotected boolean isCircularReference(java.lang.Object pObjectId, java.util.Map pVisitedObjectMap)
pObjectId
- ID to see if it appears in the visitedObjectMappVisitedObjectMap
- map where keys are IDs of objects that have been
seen.protected void markObjectVisited(java.lang.Object pObjectId, java.util.Map pVisitedObjectMap)
pObjectId
- the ID of the Object that should be put into the
visitedObjectMap.pVisitedObjectMap
- map where the key entries represent the
ID of a particular item. This is the ID that appears as the value of
a ID or IDREF attribute.protected boolean isNullPropertyValue(RepositoryPropertyDescriptor pPropertyDesc, java.lang.Object pValue)
pPropertyDesc
- property whose value is being checked.pValue
- the value that should be checked to see if its null.public java.lang.String getXMLPropertyElementName(RepositoryPropertyDescriptor pPropertyDesc, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pNSPrefix, java.lang.String pGlobalNSPrefix)
pPropertyDesc
- the property descriptor to get the name ofpItemMappingElement
- ItemMappingElement controlloing how an
item is mapped into an instance document. The property represented by
the pPropertyDesc parameter could appear as a PropertyMappingElement on
the ItemMappingElementpNSPrefix
- the namesapce prefix to use for this itempGlobalNSPrefix
- the global NS prefix for the document.protected atg.repository.xml.ItemDescToNSInfo getItemDescToNSInfo(RepositoryItemDescriptor pItemDescriptor)
ItemDescToNSInfo
from RepositoryItemDescriptorpItemDescriptor
- a RepositoryItemDescriptor
valueItemDescToNSInfo
valueprotected atg.repository.xml.ItemDescToNSInfo getItemDescToNSInfo(RepositoryItemDescriptor pItemDescriptor, java.lang.String pMappingFileName)
ItemDescToNSInfo
from RepositoryItemDescriptor and
mapping file namepItemDescriptor
- itemDescriptor that a namespace will be generated
for.pMappingFileName
- name of a mapping file to control how the
item-descriptor is mapped.protected RepositoryItemDescriptor retrieveItemDescriptor(atg.repository.databinding.ItemMappingElement pItemMappingElement, RepositoryItem pItem) throws GetException, RepositoryException
ItemMappingElement
represents item descriptor of super-type to the item descriptor of the
repository item, then we use the super-type represented by
ItemMappingElement. Otherwise we just use the item descriptor represented
by the Repository item.pItemMappingElement
- controlling how a repository item is mapped
into an instance documentpItem
- the item to obtain an item-descriptor forRepositoryItemDescriptor
valueGetException
RepositoryException
public void getItemAsXML(java.io.Writer pXMLOutput, RepositoryItem pItem) throws GetException
pItem
- the item to generate a XML instance document for.pXMLOutput
- Writer
instance to write XML output.GetException
- if an error occurspublic void getItemAsXML(java.io.Writer pXMLOutput, RepositoryItem pItem, java.lang.String[] pIncludeProperties) throws GetException
pXMLOutput
- Writer
instance to write XML output.pItem
- the item to generate an instance document for.pIncludeProperties
- an array list of properties that should be
included in the generated instance document. All properties not appearing
in this array will be excluded from the generated instance document. Using
this property can be useful if the calling application knows only a subset
of properties on an item changed for example. The values appearing in this
array must be top-level properties on the item.GetException
- if an error occurspublic void getItemAsXML(java.io.Writer pXMLOutput, RepositoryItem pItem, java.lang.String pMappingFileName) throws GetException
pXMLOutput
- Writer
instance to write XML output.pItem
- the repository item to generate an instance document forpMappingFileName
- name of a mapping file that should be used to
control how the generated instance document appears. This mapping file
is resolved against the configured Schema manager.GetException
- if an error occurspublic void getItemAsXML(java.io.Writer pXMLOutput, RepositoryItem pItem, java.lang.String[] pIncludeProperties, java.lang.String pMappingFileName) throws GetException
pXMLOutput
- Writer
instance to write XML output.pItem
- the item to generate an instance document forpIncludeProperties
- an array list of properties that should be
included in the generated instance document. All properties not appearing
in this array will be excluded from the generated instance document. Using
this property can be useful if the calling application knows only a subset
of properties on an item changed for example. The values appearing in this
array must be top-level properties on the item.pMappingFileName
- name of a mapping file that should be used to
control how the generated instance document appears. This mapping file
is resolved against the configured Schema manager.GetException
- if an error occursprotected void appendRepositoryItem(RepositoryItem pItem, java.lang.String[] pIncludeProperties, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix, RepositoryItemDescriptor pItemDescriptor, atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo) throws GetException, java.io.IOException, RepositoryException
pItem
parameter and calls the appropriate
handleXXX()
methods.pItem
- the item to generate an instance document forpIncludeProperties
- properties to include in the generated instance
documentpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the documentpItemDescriptor
- the item-descriptor backing the item represented
by the pItem
parameter.pItemDescToNSInfo
- the class which contains the namespace info. and
repository item info. of the item, pItem
passed.GetException
- if an error occurs while trying to get an xml
representation for the item pItem.java.io.IOException
- if any error occurs while writing to
pInstanceWriter
RepositoryException
protected void appendComplexElement(RepositoryItem pItem, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException, java.io.IOException
pItem
- the item to generate an instance document forpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pInstanceWriter
- the Writer which contains partially generated
xml instance.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the documentGetException
- if an error occurs while trying to get an xml
representation for the item pItem.java.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleSimpleType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pGlobalNSPrefix) throws java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that an XML representation will be
generated for.pInstanceWriter
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpGlobalNSPrefix
- global NS for the documentGetException
- if an error occurs while trying to get an xml
representation for the item pItem.java.io.IOException
- if any error occurs while writing to
pInstanceWriter
public java.lang.String getAdjustedValue(RepositoryPropertyDescriptor pPropertyDesc, java.lang.String pValue)
pPropertyDesc
- The repository property descriptorpValue
- The valueprotected void handleComplexType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException, java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that a complexType definition willbe
generated forpInstanceWriter
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the documentGetException
- if an error occurs while trying to get an xml
representation for the item pItem.GetException
- if an error occursjava.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleCollectionType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException, java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pNSPrefix
- NS Prefix for this instance documentpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- global NS for the documentGetException
- if an error occursjava.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleSimpleCollectionType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, java.lang.String pGlobalNSPrefix) throws java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceWriter
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpGlobalNSPrefix
- global NS for the documentjava.io.IOException
protected void handleComplexCollectionType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException, java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used for the instance documentGetException
- if an error occursjava.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleMapType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException, java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pNSPrefix
- NS Prefix for this instance documentpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used for this document.GetException
- if an error occursjava.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleComplexMapType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException, java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used in this document.GetException
- if an error occursjava.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleSimpleMapType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, java.lang.String pGlobalNSPrefix) throws java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pNSPrefix
- NS Prefix for this instance documentpGlobalNSPrefix
- the global namespace used in the document.java.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleArrayType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException, java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pNSPrefix
- NS Prefix for this instance documentpItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used through out this documentGetException
- if an error occursjava.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleSimpleArrayType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, java.lang.String pNSPrefix, java.lang.String pGlobalNSPrefix) throws java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceDoc
- StringBuffer that contains the partially generated
XML Schema.pNSPrefix
- NS Prefix for this instance documentpGlobalNSPrefix
- the global namespace used in the documentjava.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void handleComplexArrayType(RepositoryItem pItem, RepositoryPropertyDescriptor pPropertyDesc, java.io.Writer pInstanceWriter, atg.repository.databinding.ItemMappingElement pItemMappingElement, java.lang.String pNSPrefix, java.util.Map pVisitedObjects, java.lang.String pGlobalNSPrefix) throws GetException, java.io.IOException
pItem
- the item to generate an instance document forpPropertyDesc
- the property that XML is being generated forpInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pItemMappingElement
- ItemMappingElement that controls how an
item is mapped into an instance document. This ItemMappingElement is the
result of resolving a mapping file against the configured SchemaManager.pNSPrefix
- NS Prefix for this instance documentpVisitedObjects
- map of visited objects in a graph to their ID.
If we have already seen an object during the serialization of an object
graph, the item should not be traversed a second time. Instead, the
ID associated with that object used be used for the value of an IDREF
attributepGlobalNSPrefix
- the global namespace used in the documentGetException
- if an error occursjava.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void addSchemaLocations(java.io.Writer pInstanceWriter, atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo) throws java.io.IOException
pInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pItemDescToNSInfoMap
- map contain namespace information used
in the generation of this instance document.java.io.IOException
- if any error occurs while writing to
pInstanceWriter
protected void addNamespaceDeclarations(java.io.Writer pInstanceWriter, atg.repository.xml.ItemDescToNSInfo pItemDescToNSInfo) throws java.io.IOException
pInstanceWriter
- the Writer which contains partially generated
xml instance, and into which we write this property.pItemDescToNSInfoMap
- list of item-descriptor namespace informationjava.io.IOException
- if any error occurs while writing to
pInstanceWriter