Class YComposedType

    • Constructor Detail

      • YComposedType

        public YComposedType​(YNamespace container,
                             java.lang.String code,
                             java.lang.String superTypeCode,
                             java.lang.String jaloClassName)
    • Method Detail

      • allowMetaTypeInheritanceFrom

        protected boolean allowMetaTypeInheritanceFrom​(YComposedType superType)
      • getCustomProps

        public java.util.Map<java.lang.String,​java.lang.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 java.util.Map<java.lang.String,​java.lang.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 java.util.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 java.lang.String getJaloClassName()
      • getOwnJaloClassName

        public java.lang.String getOwnJaloClassName()
      • isJaloClassAbstract

        protected boolean isJaloClassAbstract()
      • setTypeDescription

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

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

        public boolean isViewType()
      • getJaloClass

        public java.lang.Class getJaloClass()
      • getOwnJaloClass

        public java.lang.Class getOwnJaloClass()
      • setJaloClassName

        public void setJaloClassName​(java.lang.String jaloClassName)
      • getSuperTypeCode

        public java.lang.String getSuperTypeCode()
      • getJaloOnlyClass

        protected java.lang.Class getJaloOnlyClass()
      • isJaloOnly

        public boolean isJaloOnly()
      • setJaloOnly

        public void setJaloOnly​(boolean isJaloOnly)
      • getDeploymentName

        public java.lang.String getDeploymentName()
      • setDeploymentName

        public void setDeploymentName​(java.lang.String deploymentName)
      • getOwnDeployment

        public YDeployment getOwnDeployment()
      • getAttribute

        public YAttributeDescriptor getAttribute​(java.lang.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​(java.lang.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 java.util.Set<YComposedType> getSubtypes()
      • getAllSuperTypes

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

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

        public java.lang.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​(java.util.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 java.lang.String getDeprecatedSince()
      • setDeprecatedSince

        public void setDeprecatedSince​(java.lang.String deprecatedSince)
      • equals

        public boolean equals​(java.lang.Object type)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object