Package jadex.xml

Class TypeInfoPathManager


  • public class TypeInfoPathManager
    extends java.lang.Object
    Type path info manager. This manager organizes type infos via their paths. This allows for searching for a type info via a specific tag or subpath of tags. (Used e.g. by the reader to determine which type to use for a tag).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map typeinfos
      The type mappings.
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeInfoPathManager​(java.util.Set typeinfos)
      Create a new manager.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTypeInfo​(TypeInfo typeinfo)
      Add a type info.
      protected TypeInfo findTypeInfo​(java.util.Set typeinfos, QName[] fullpath, java.util.Map rawattributes)
      Find type find in the set of type infos.
      TypeInfo getTypeInfo​(QName tag, QName[] fullpath, java.util.Map<java.lang.String,​java.lang.String> rawattributes)
      Get the most specific mapping info.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • typeinfos

        protected java.util.Map typeinfos
        The type mappings.
    • Constructor Detail

      • TypeInfoPathManager

        public TypeInfoPathManager​(java.util.Set typeinfos)
        Create a new manager.
    • Method Detail

      • getTypeInfo

        public TypeInfo getTypeInfo​(QName tag,
                                    QName[] fullpath,
                                    java.util.Map<java.lang.String,​java.lang.String> rawattributes)
        Get the most specific mapping info.
        Parameters:
        tag - The tag.
        fullpath - The full path.
        Returns:
        The most specific mapping info.
      • addTypeInfo

        public void addTypeInfo​(TypeInfo typeinfo)
        Add a type info.
        Parameters:
        typeinfo - The type info.
      • findTypeInfo

        protected TypeInfo findTypeInfo​(java.util.Set typeinfos,
                                        QName[] fullpath,
                                        java.util.Map rawattributes)
        Find type find in the set of type infos.