Klasse DataItem

java.lang.Object
de.rpgframework.genericrpg.data.DataItem
Bekannte direkte Unterklassen:
ASkillGroup, ComplexDataItem, Module, RuleInterpretation

public abstract class DataItem extends Object
  • Felddetails

    • logger

      protected static final System.Logger logger
    • parentSet

      protected List<PageReference> parentSet
    • id

      @Attribute(required=true) protected String id
      An identifier within type
    • lang

      @Attribute(required=false) protected String lang
      Defines if this DataItem is only to be used for this language. This helps to model situations when there is a default and a deviant definition for a different language
    • parentItem

      protected transient DataItem parentItem
    • datasets

      protected transient List<DataSet> datasets
    • languageAlternatives

      protected transient Map<String,DataItem> languageAlternatives
  • Konstruktordetails

    • DataItem

      protected DataItem()
  • Methodendetails

    • assignToDataSet

      public void assignToDataSet(DataSet set)
    • getAssignedDataSets

      public Collection<DataSet> getAssignedDataSets()
    • inDataSets

      public boolean inDataSets(Collection<DataSet> sets)
    • getTypeString

      public String getTypeString()
    • getId

      public String getId()
    • setId

      public void setId(String value)
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • getName

      public String getName()
      Use getName(Locale)
    • setParentItem

      public void setParentItem(DataItem parentItem)
    • getFirstParent

      public DataSet getFirstParent(Locale locale)
    • getLocalizedString

      public String getLocalizedString(Locale locale, String key)
    • getResource

      public InputStream getResource(String name)
    • getLocalizedString

      public String getLocalizedString(Locale locale, List<String> keys)
    • getName

      public String getName(Locale locale)
    • getShortName

      public String getShortName(Locale locale)
    • getDescription

      public String getDescription()
      Use getDescription(Locale)
    • hasLicense

      public boolean hasLicense()
    • hasLicense

      public boolean hasLicense(Locale locale)
    • getDescription

      public String getDescription(Locale locale)
    • getLanguage

      public String getLanguage()
    • validate

      public void validate() throws DataErrorException
      Used in deriving classes to perform validation checks on loading, if necessary
      Löst aus:
      DataErrorException
    • getPageReferences

      public List<PageReference> getPageReferences()
      Gibt zurück:
      the parentSet
    • addLanguageAlternative

      public void addLanguageAlternative(String lang, DataItem alt)
    • hasLanguageAlternative

      public boolean hasLanguageAlternative(String lang)
    • getLanguageAlternative

      public <T extends DataItem> T getLanguageAlternative(String lang)
    • getLanguageAlternatives

      public Collection<DataItem> getLanguageAlternatives()