Package jadex.xml
Class TypeInfo
- java.lang.Object
- 
- jadex.xml.AbstractInfo
- 
- jadex.xml.TypeInfo
 
 
- 
 public class TypeInfo extends AbstractInfo Mapping from tag (or path fragment) to object.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class jadex.xml.AbstractInfoAbstractInfo.SpecificityComparator
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected java.util.Map<java.lang.Object,AttributeInfo>attributeinfosThe attributes info (xmlname -> attrinfo).protected LinkingInfolinkinfoThe link info .protected MappingInfomapinfoThe map info contains all mapping relevant data, e.g.protected ObjectInfoobjectinfoThe object info for storing info about the object side, e.g.protected IObjectReaderHandlerreaderhandlerThe reader handler (if any).protected java.util.Map<QName,java.util.TreeSet<SubobjectInfo>>subobjectinfosreadThe sub objects (xmlpath -> subobject info).protected java.util.Map<AccessInfo,SubobjectInfo>subobjectinfoswriteThe sub objects (non-xml name -> subobject info).- 
Fields inherited from class jadex.xml.AbstractInfoid, idcnt, xmlinfo, xmlpathelementswithouttag
 
- 
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method 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 SubobjectInfofindSubobjectInfo(java.util.Set<SubobjectInfo> soinfos, QName[] fullpath, java.util.Map<java.lang.String,java.lang.String> rawattributes)Find a subobject info.java.lang.ObjectgetAttributeInfo(java.lang.Object xmlname)Get the attribute info.java.util.Collection<AttributeInfo>getAttributeInfos()Get the attribute infos.java.lang.ObjectgetCommentInfo()Get the comment info.java.lang.ObjectgetContentInfo()Get the content info.AttributeInfo[]getDeclaredAttributeInfos()Get the declared attribute infos.SubobjectInfo[]getDeclaredSubobjectInfos()Get the declared subobject infos.java.lang.ObjectgetLinker()Get the linker.LinkingInfogetLinkInfo()Get the linkinfo.MappingInfogetMappingInfo()Get the mapping info.ObjectInfogetObjectInfo()Get the objectinfo.IPostProcessorgetPostProcessor()Get the post-processor.IPreProcessorgetPreProcessor()Get the pre-processor.IObjectReaderHandlergetReaderHandler()Get the reader handler associated to the object type (if any).SubobjectInfogetSubobjectInfoRead(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.SubobjectInfogetSubobjectInfoWrite(java.lang.Object attr)Get the subobject infos.TypeInfogetSupertype()Get the supertype.java.lang.ObjectgetTypeInfo()Get the type info.java.util.Set<java.lang.Object>getXMLAttributeNames()Get the xml attribute names.booleanisBulkLink()Test if the object should be bulk linked.booleanisCreateFromTag()Test if object should be created from tag name.booleanisIncludeFields()Get the includefields.booleanisIncludeMethods()Get the includemethods.voidsetReaderHandler(IObjectReaderHandler readerhandler)Set the reader handler associated to the object type (if any).- 
Methods inherited from class jadex.xml.AbstractInfogetFilter, getId, getXMLInfo, getXMLPath, getXMLPathDepth, getXMLPathElements, getXMLPathElementsWithoutElement, getXMLTag, toString
 
- 
 
- 
- 
- 
Field Detail- 
readerhandlerprotected IObjectReaderHandler readerhandler The reader handler (if any).
 - 
objectinfoprotected ObjectInfo objectinfo The object info for storing info about the object side, e.g. the object type.
 - 
mapinfoprotected MappingInfo mapinfo The map info contains all mapping relevant data, e.g. for attributes, subobjects etc.
 - 
linkinfoprotected LinkingInfo linkinfo The link info .
 - 
attributeinfosprotected java.util.Map<java.lang.Object,AttributeInfo> attributeinfos The attributes info (xmlname -> attrinfo).
 - 
subobjectinfoswriteprotected java.util.Map<AccessInfo,SubobjectInfo> subobjectinfoswrite The sub objects (non-xml name -> subobject info).
 - 
subobjectinfosreadprotected java.util.Map<QName,java.util.TreeSet<SubobjectInfo>> subobjectinfosread The sub objects (xmlpath -> subobject info).
 
- 
 - 
Constructor Detail- 
TypeInfopublic TypeInfo(XMLInfo xmlinfo, ObjectInfo objectinfo) Create a new type info.
 - 
TypeInfopublic TypeInfo(XMLInfo xmlinfo, ObjectInfo objectinfo, MappingInfo mapinfo) Create a new type info.
 - 
TypeInfopublic TypeInfo(XMLInfo xmlinfo, ObjectInfo objectinfo, MappingInfo mapinfo, LinkingInfo linkinfo) Create a new type info.
 - 
TypeInfopublic TypeInfo(XMLInfo xmlinfo, ObjectInfo objectinfo, MappingInfo mapinfo, LinkingInfo linkinfo, IObjectReaderHandler readerhandler) Create a new type info.
 
- 
 - 
Method Detail- 
getTypeInfopublic java.lang.Object getTypeInfo() Get the type info.- Returns:
- The type.
 
 - 
getObjectInfopublic ObjectInfo getObjectInfo() Get the objectinfo.- Returns:
- The objectinfo.
 
 - 
getMappingInfopublic MappingInfo getMappingInfo() Get the mapping info.- Returns:
- The mapinfo.
 
 - 
getLinkInfopublic LinkingInfo getLinkInfo() Get the linkinfo.- Returns:
- The linkinfo.
 
 - 
getSupertypepublic TypeInfo getSupertype() Get the supertype.- Returns:
- The super type.
 
 - 
getCommentInfopublic java.lang.Object getCommentInfo() Get the comment info.- Returns:
- The comment
 
 - 
getContentInfopublic java.lang.Object getContentInfo() Get the content info.- Returns:
- The content info.
 
 - 
isIncludeFieldspublic boolean isIncludeFields() Get the includefields.- Returns:
- The includefields.
 
 - 
isIncludeMethodspublic boolean isIncludeMethods() Get the includemethods.- Returns:
- The includemethods.
 
 - 
getAttributeInfopublic java.lang.Object getAttributeInfo(java.lang.Object xmlname) Get the attribute info.- Parameters:
- xmlname- The xml name of the attribute.
- Returns:
- The attribute info.
 
 - 
getXMLAttributeNamespublic java.util.Set<java.lang.Object> getXMLAttributeNames() Get the xml attribute names.- Returns:
- The attribute names.
 
 - 
getAttributeInfospublic java.util.Collection<AttributeInfo> getAttributeInfos() Get the attribute infos.- Returns:
- The attribute infos.
 
 - 
getDeclaredAttributeInfospublic AttributeInfo[] getDeclaredAttributeInfos() Get the declared attribute infos.
 - 
getDeclaredSubobjectInfospublic SubobjectInfo[] getDeclaredSubobjectInfos() Get the declared subobject infos.
 - 
getPostProcessorpublic IPostProcessor getPostProcessor() Get the post-processor.- Returns:
- The post-processor
 
 - 
getPreProcessorpublic IPreProcessor getPreProcessor() Get the pre-processor.- Returns:
- The pre-processor
 
 - 
getSubobjectInfospublic java.util.Collection<SubobjectInfo> getSubobjectInfos() Get the subobject infos.- Returns:
- The subobject infos.
 
 - 
getSubobjectInfoWritepublic SubobjectInfo getSubobjectInfoWrite(java.lang.Object attr) Get the subobject infos.- Returns:
- The subobject info.
 
 - 
getSubobjectInfoReadpublic SubobjectInfo getSubobjectInfoRead(QName tag, QName[] fullpath, java.util.Map<java.lang.String,java.lang.String> rawattributes) Get the most specific subobject info.- Parameters:
- tag- The tag.
- fullpath- The full path.
- Returns:
- The most specific subobject info.
 
 - 
isCreateFromTagpublic boolean isCreateFromTag() Test if object should be created from tag name.
 - 
getLinkerpublic java.lang.Object getLinker() Get the linker.- Returns:
- The linker.
 
 - 
isBulkLinkpublic boolean isBulkLink() Test if the object should be bulk linked.
 - 
findSubobjectInfoprotected SubobjectInfo findSubobjectInfo(java.util.Set<SubobjectInfo> soinfos, QName[] fullpath, java.util.Map<java.lang.String,java.lang.String> rawattributes) Find a subobject info.
 - 
createSubobjectInfosWriteprotected java.util.Map<AccessInfo,SubobjectInfo> createSubobjectInfosWrite(SubobjectInfo[] subobjectinfos) Create subobject infos for each tag sorted by specificity.- Parameters:
- subobjectinfos- The subobject infos.
- Returns:
- Map of subobject infos.
 
 - 
createSubobjectInfosReadprotected java.util.Map<QName,java.util.TreeSet<SubobjectInfo>> createSubobjectInfosRead(SubobjectInfo[] subobjectinfos) Create subobject infos for each tag sorted by specificity.- Parameters:
- subobjectinfos- The subobject infos.
- Returns:
- Map of subobject infos.
 
 - 
createAttributeInfosprotected java.util.Map<java.lang.Object,AttributeInfo> createAttributeInfos(AttributeInfo[] attributeinfos) Create the attribute info map (xml name(s) -> attribute info).
 - 
setReaderHandlerpublic void setReaderHandler(IObjectReaderHandler readerhandler) Set the reader handler associated to the object type (if any).
 - 
getReaderHandlerpublic IObjectReaderHandler getReaderHandler() Get the reader handler associated to the object type (if any).
 
- 
 
-