Class TypeManagerManaged

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Descriptor, SearchRestriction, Type

public abstract class TypeManagerManaged extends LocalizableItem
Base class of all type system classes.

This class provides any type system item with a localized name and its extension name. The extension name shows which extension a type system item belongs to - means: which items.xml it should be declared in.

See Also:
  • Field Details

  • Constructor Details

    • TypeManagerManaged

      public TypeManagerManaged()
  • Method Details

    • getExtensionName

      public String getExtensionName()
      Returns the name of the extension which this type system item belongs to.

      Any type or decriptor declared by an extension's items.xml owns the name of this extension. Types or descriptors created after initialization do not have an extension name automatically.

    • setExtensionName

      public void setExtensionName(String extname)
      Changes the name of the extension which this type system item belongs to.

      Any type or decriptor declared by an extension's items.xml owns the name of this extension. Types or descriptors created after initialization do not have an extension name automatically.

    • isDeprecated

      public boolean isDeprecated()
      Tells whether this type system element was marked as deprecated by the last re-initialization. This means that this element was created by previous re-initializations and exists as long as the system is initialized completely.
    • isAutocreate

      public boolean isAutocreate()
      Returns:
      true if the type system element should be create automatically during initialization.
    • setAutocreate

      public void setAutocreate(boolean auto)
      Defines if this type type system element should be create automatically during initialization.
    • isGenerate

      public boolean isGenerate()
      Returns:
      true if jalo code should be generated for this type system element by build process.
    • setGenerate

      public void setGenerate(boolean gen)
      Defines if jalo code should be generated for this type system element by build process.
    • getName

      public String getName()
      Returns:
      the name of this type system item localized for the current session language
    • getName

      public String getName(SessionContext ctx)
      Parameters:
      ctx - the session context specifying the language to get the name for
      Returns:
      the name of this type system item localized for the specified session context
    • getAllNames

      public Map getAllNames(SessionContext ctx)
      Gives all names in form of a language-to-name map.
    • setAllNames

      public void setAllNames(SessionContext ctx, Map names)
      Sets all names at once. All previous names are removed.
      Parameters:
      names - a map containing language-to-name mappings
    • getAllNames

      public Map getAllNames()
      Gives all names in form of a language-to-name map.
    • setName

      public void setName(String name)
      Changes the name of this type system item for the current session language.
      Parameters:
      name - the new name
    • setName

      public void setName(SessionContext ctx, String name)
      Changes the name of this type system item for the specified language.
      Parameters:
      ctx - the session context defining the language to change the name for
      name - the new name
    • setAllNames

      public void setAllNames(Map names)
      Sets all names at once. All previous names are removed.
      Parameters:
      names - a map containing language-to-name mappings
    • getImpl

      Internal access to the persistence layer implementation.
    • exportXMLDefinition

      public abstract String exportXMLDefinition(org.znerd.xmlenc.XMLOutputter xout)