Class YComposedType

Direct Known Subclasses:
YEnumType, YRelation

public class YComposedType extends YType
  • Constructor Details

  • Method Details

    • getDefaultMetaTypeCode

      protected String getDefaultMetaTypeCode()
      Specified by:
      getDefaultMetaTypeCode in class YTypeSystemElement
    • getMetaType

      public YComposedType getMetaType()
      Overrides:
      getMetaType in class YTypeSystemElement
    • allowMetaTypeInheritanceFrom

      protected boolean allowMetaTypeInheritanceFrom(YComposedType superType)
    • getCustomProps

      public Map<String,String> getCustomProps()
      Overwritten to merge all super type properties. Use getOwnCustomProps() to get just the ones declared at this type.
      Overrides:
      getCustomProps in class YTypeSystemElement
    • getOwnCustomProps

      public Map<String,String> getOwnCustomProps()
    • validate

      public void validate()
      Description copied from class: YNameSpaceElement
      Validates the element. This should check whether or not lazy references can be resolved or any data is missing.
      Overrides:
      validate in class YType
    • getYModelConstructors

      public List<YComposedType.YModelConstructor> getYModelConstructors()
      Returns:
      the list with the YModelConstructor for this type
    • isAbstract

      public boolean isAbstract()
    • setAbstract

      public void setAbstract(boolean isAbstract)
    • isSingleton

      public boolean isSingleton()
    • setSingleton

      public void setSingleton(boolean isSingleton)
    • getJaloClassName

      public String getJaloClassName()
    • getOwnJaloClassName

      public String getOwnJaloClassName()
    • isJaloClassAbstract

      protected boolean isJaloClassAbstract()
    • setTypeDescription

      public void setTypeDescription(String typeDescription)
      sets global meta information for a type
    • getTypeDescription

      public String getTypeDescription()
      gets global meta information for a type
    • isViewType

      public boolean isViewType()
    • getJaloClass

      public Class getJaloClass()
    • getOwnJaloClass

      public Class getOwnJaloClass()
    • setJaloClassName

      public void setJaloClassName(String jaloClassName)
    • getSuperTypeCode

      public String getSuperTypeCode()
    • getSuperType

      public YComposedType getSuperType()
    • getJaloOnlyClass

      protected Class getJaloOnlyClass()
    • isJaloOnly

      public boolean isJaloOnly()
    • setJaloOnly

      public void setJaloOnly(boolean isJaloOnly)
    • getDeploymentName

      public String getDeploymentName()
    • setDeploymentName

      public void setDeploymentName(String deploymentName)
    • getDeployment

      public YDeployment getDeployment()
    • getOwnDeployment

      public YDeployment getOwnDeployment()
    • getAttribute

      public YAttributeDescriptor getAttribute(String qualifier)
      Returns for the given qualifier the YAttributeDescriptor which is defined at this current YComposedType.
      Parameters:
      qualifier - the attribute qualifier
      Returns:
      null if such YAttributeDescriptor does not exists (or was defined at a supertype. Use then getAttributeIncludingSuperType(String)
    • getAttributeIncludingSuperType

      public YAttributeDescriptor getAttributeIncludingSuperType(String qualifier)
      Returns for the given qualifier the YAttributeDescriptor. It doesn't matter if the attribute was defined at the current YComposedType or any supertype.
      Parameters:
      qualifier - the attribute qualifier
      Returns:
      null if the given qualifier does not exists at the current type or any supertype
    • getSubtypes

      public Set<YComposedType> getSubtypes()
    • getAllSuperTypes

      public List<YComposedType> getAllSuperTypes()
      Returns all super type starting with the root type.
    • getAllSubtypes

      public Set<YComposedType> getAllSubtypes()
      Returns all subtypes. That includes this type's own subtypes, their subtypes, etc.
    • getAttributes

      public Set<YAttributeDescriptor> getAttributes()
    • getDeclaredAttributes

      public Set<YAttributeDescriptor> getDeclaredAttributes()
    • getRedeclaredAttributes

      public Set<YAttributeDescriptor> getRedeclaredAttributes()
    • getJavaClassName

      public String getJavaClassName()
      Specified by:
      getJavaClassName in class YType
    • isGenerateModel

      public boolean isGenerateModel()
      Returns true if the model generation (items.xml - tag <model>) is enabled.
      Returns:
      false otherwise.
    • setGenerateModel

      public void setGenerateModel(boolean generateModel)
      Setter for generate model.
      Parameters:
      generateModel - the value
    • addConstructorSignatures

      public void addConstructorSignatures(List<ModelTagListener.ModelDataConstructor> signatures)
      Add (to an existing list) another list which contains the defined constructor signatures.
    • isLegacyPersistence

      public boolean isLegacyPersistence()
    • setLegacyPersistence

      public void setLegacyPersistence(boolean legacyPersistence)
    • getDeprecatedSince

      public String getDeprecatedSince()
    • setDeprecatedSince

      public void setDeprecatedSince(String deprecatedSince)
    • isAssignableFrom

      public boolean isAssignableFrom(YType type)
      Specified by:
      isAssignableFrom in class YType
    • equals

      public boolean equals(Object type)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object