public class TypeInfo extends AbstractInfo
AbstractInfo.SpecificityComparator
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Object,AttributeInfo> |
attributeinfos
The attributes info (xmlname -> attrinfo).
|
protected LinkingInfo |
linkinfo
The link info .
|
protected MappingInfo |
mapinfo
The map info contains all mapping relevant data, e.g.
|
protected ObjectInfo |
objectinfo
The object info for storing info about the object side, e.g.
|
protected IObjectReaderHandler |
readerhandler
The reader handler (if any).
|
protected java.util.Map<QName,java.util.TreeSet<SubobjectInfo>> |
subobjectinfosread
The sub objects (xmlpath -> subobject info).
|
protected java.util.Map<AccessInfo,SubobjectInfo> |
subobjectinfoswrite
The sub objects (non-xml name -> subobject info).
|
id, idcnt, xmlinfo, xmlpathelementswithouttag
Constructor and Description |
---|
TypeInfo(XMLInfo xmlinfo,
ObjectInfo objectinfo)
Create a new type info.
|
TypeInfo(XMLInfo xmlinfo,
ObjectInfo objectinfo,
MappingInfo mapinfo)
Create a new type info.
|
TypeInfo(XMLInfo xmlinfo,
ObjectInfo objectinfo,
MappingInfo mapinfo,
LinkingInfo linkinfo)
Create a new type info.
|
TypeInfo(XMLInfo xmlinfo,
ObjectInfo objectinfo,
MappingInfo mapinfo,
LinkingInfo linkinfo,
IObjectReaderHandler readerhandler)
Create a new type info.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.Object,AttributeInfo> |
createAttributeInfos(AttributeInfo[] attributeinfos)
Create the attribute info map (xml name(s) -> attribute info).
|
protected java.util.Map<QName,java.util.TreeSet<SubobjectInfo>> |
createSubobjectInfosRead(SubobjectInfo[] subobjectinfos)
Create subobject infos for each tag sorted by specificity.
|
protected java.util.Map<AccessInfo,SubobjectInfo> |
createSubobjectInfosWrite(SubobjectInfo[] subobjectinfos)
Create subobject infos for each tag sorted by specificity.
|
protected SubobjectInfo |
findSubobjectInfo(java.util.Set<SubobjectInfo> soinfos,
QName[] fullpath,
java.util.Map<java.lang.String,java.lang.String> rawattributes)
Find a subobject info.
|
java.lang.Object |
getAttributeInfo(java.lang.Object xmlname)
Get the attribute info.
|
java.util.Collection<AttributeInfo> |
getAttributeInfos()
Get the attribute infos.
|
java.lang.Object |
getCommentInfo()
Get the comment info.
|
java.lang.Object |
getContentInfo()
Get the content info.
|
AttributeInfo[] |
getDeclaredAttributeInfos()
Get the declared attribute infos.
|
SubobjectInfo[] |
getDeclaredSubobjectInfos()
Get the declared subobject infos.
|
java.lang.Object |
getLinker()
Get the linker.
|
LinkingInfo |
getLinkInfo()
Get the linkinfo.
|
MappingInfo |
getMappingInfo()
Get the mapping info.
|
ObjectInfo |
getObjectInfo()
Get the objectinfo.
|
IPostProcessor |
getPostProcessor()
Get the post-processor.
|
IPreProcessor |
getPreProcessor()
Get the pre-processor.
|
IObjectReaderHandler |
getReaderHandler()
Get the reader handler associated to the object type (if any).
|
SubobjectInfo |
getSubobjectInfoRead(QName tag,
QName[] fullpath,
java.util.Map<java.lang.String,java.lang.String> rawattributes)
Get the most specific subobject info.
|
java.util.Collection<SubobjectInfo> |
getSubobjectInfos()
Get the subobject infos.
|
SubobjectInfo |
getSubobjectInfoWrite(java.lang.Object attr)
Get the subobject infos.
|
TypeInfo |
getSupertype()
Get the supertype.
|
java.lang.Object |
getTypeInfo()
Get the type info.
|
java.util.Set<java.lang.Object> |
getXMLAttributeNames()
Get the xml attribute names.
|
boolean |
isBulkLink()
Test if the object should be bulk linked.
|
boolean |
isCreateFromTag()
Test if object should be created from tag name.
|
boolean |
isIncludeFields()
Get the includefields.
|
boolean |
isIncludeMethods()
Get the includemethods.
|
void |
setReaderHandler(IObjectReaderHandler readerhandler)
Set the reader handler associated to the object type (if any).
|
getFilter, getId, getXMLInfo, getXMLPath, getXMLPathDepth, getXMLPathElements, getXMLPathElementsWithoutElement, getXMLTag, toString
protected IObjectReaderHandler readerhandler
protected ObjectInfo objectinfo
protected MappingInfo mapinfo
protected LinkingInfo linkinfo
protected java.util.Map<java.lang.Object,AttributeInfo> attributeinfos
protected java.util.Map<AccessInfo,SubobjectInfo> subobjectinfoswrite
protected java.util.Map<QName,java.util.TreeSet<SubobjectInfo>> subobjectinfosread
public TypeInfo(XMLInfo xmlinfo, ObjectInfo objectinfo)
public TypeInfo(XMLInfo xmlinfo, ObjectInfo objectinfo, MappingInfo mapinfo)
public TypeInfo(XMLInfo xmlinfo, ObjectInfo objectinfo, MappingInfo mapinfo, LinkingInfo linkinfo)
public TypeInfo(XMLInfo xmlinfo, ObjectInfo objectinfo, MappingInfo mapinfo, LinkingInfo linkinfo, IObjectReaderHandler readerhandler)
public java.lang.Object getTypeInfo()
public ObjectInfo getObjectInfo()
public MappingInfo getMappingInfo()
public LinkingInfo getLinkInfo()
public TypeInfo getSupertype()
public java.lang.Object getCommentInfo()
public java.lang.Object getContentInfo()
public boolean isIncludeFields()
public boolean isIncludeMethods()
public java.lang.Object getAttributeInfo(java.lang.Object xmlname)
xmlname
- The xml name of the attribute.public java.util.Set<java.lang.Object> getXMLAttributeNames()
public java.util.Collection<AttributeInfo> getAttributeInfos()
public AttributeInfo[] getDeclaredAttributeInfos()
public SubobjectInfo[] getDeclaredSubobjectInfos()
public IPostProcessor getPostProcessor()
public IPreProcessor getPreProcessor()
public java.util.Collection<SubobjectInfo> getSubobjectInfos()
public SubobjectInfo getSubobjectInfoWrite(java.lang.Object attr)
public SubobjectInfo getSubobjectInfoRead(QName tag, QName[] fullpath, java.util.Map<java.lang.String,java.lang.String> rawattributes)
tag
- The tag.fullpath
- The full path.public boolean isCreateFromTag()
public java.lang.Object getLinker()
public boolean isBulkLink()
protected SubobjectInfo findSubobjectInfo(java.util.Set<SubobjectInfo> soinfos, QName[] fullpath, java.util.Map<java.lang.String,java.lang.String> rawattributes)
protected java.util.Map<AccessInfo,SubobjectInfo> createSubobjectInfosWrite(SubobjectInfo[] subobjectinfos)
subobjectinfos
- The subobject infos.protected java.util.Map<QName,java.util.TreeSet<SubobjectInfo>> createSubobjectInfosRead(SubobjectInfo[] subobjectinfos)
subobjectinfos
- The subobject infos.protected java.util.Map<java.lang.Object,AttributeInfo> createAttributeInfos(AttributeInfo[] attributeinfos)
public void setReaderHandler(IObjectReaderHandler readerhandler)
public IObjectReaderHandler getReaderHandler()