Class ClassType

    • Constructor Detail

      • ClassType

        public ClassType()
      • ClassType

        public ClassType​(java.lang.String name)
      • ClassType

        public ClassType​(java.lang.String name,
                         DataType baseType)
      • ClassType

        public ClassType​(java.lang.String name,
                         DataType baseType,
                         java.util.Collection<ClassTypeElement> elements)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface NamedType
      • getNamespace

        public java.lang.String getNamespace()
        Specified by:
        getNamespace in interface NamedType
      • getSimpleName

        public java.lang.String getSimpleName()
        Specified by:
        getSimpleName in interface NamedType
      • getIdentifier

        public java.lang.String getIdentifier()
      • setIdentifier

        public void setIdentifier​(java.lang.String identifier)
      • getLabel

        public java.lang.String getLabel()
      • setLabel

        public void setLabel​(java.lang.String label)
      • getTarget

        public java.lang.String getTarget()
        Specified by:
        getTarget in interface NamedType
      • setTarget

        public void setTarget​(java.lang.String target)
      • isRetrievable

        public boolean isRetrievable()
      • setRetrievable

        public void setRetrievable​(boolean retrievable)
      • getPrimaryCodePath

        public java.lang.String getPrimaryCodePath()
      • setPrimaryCodePath

        public void setPrimaryCodePath​(java.lang.String primaryCodePath)
      • getPrimaryValueSetPath

        public java.lang.String getPrimaryValueSetPath()
      • setPrimaryValueSetPath

        public void setPrimaryValueSetPath​(java.lang.String primaryValueSetPath)
      • getRelationships

        public java.lang.Iterable<Relationship> getRelationships()
      • addRelationship

        public void addRelationship​(Relationship relationship)
      • getTargetRelationships

        public java.lang.Iterable<Relationship> getTargetRelationships()
      • addTargetRelationship

        public void addTargetRelationship​(Relationship relationship)
      • getSearches

        public java.lang.Iterable<SearchType> getSearches()
      • addSearch

        public void addSearch​(SearchType search)
      • findSearch

        public SearchType findSearch​(java.lang.String searchPath)
      • getGenericParameters

        public java.util.List<TypeParameter> getGenericParameters()
        Returns the generic parameters for the generic type. For instance, for the generic type Map<K,V extends Person>, two generic parameters will be returned: K and V extends Person. The latter parameter has a constraint restricting the type of the bound type to be a valid subtype of Person.
        Returns:
        Class' generic parameters
      • setGenericParameters

        public void setGenericParameters​(java.util.List<TypeParameter> genericParameters)
        Sets the generic parameters for the generic type. For instance, for the generic type Map<K,V extends Person>, two generic parameters should be set: K and V extends Person. The latter parameter has a constraint restricting the type of the bound type to be a valid subtype of Person.
        Parameters:
        genericParameters -
      • addGenericParameter

        public void addGenericParameter​(TypeParameter genericParameter)
        Adds a parameter declaration to the generic type.
        Parameters:
        genericParameter -
      • addGenericParameter

        public void addGenericParameter​(java.util.Collection<TypeParameter> parameters)
        Adds collection of type parameters to existing set.
        Parameters:
        parameters -
      • getGenericParameterByIdentifier

        public TypeParameter getGenericParameterByIdentifier​(java.lang.String identifier)
        Returns the parameter with the given parameter identifier. If not found in the given class, it looks in the parent class.
        Parameters:
        identifier -
        Returns:
        Generic parameter with the given name in the current class or in the base class. Null if none found.
      • getGenericParameterByIdentifier

        public TypeParameter getGenericParameterByIdentifier​(java.lang.String identifier,
                                                             boolean inCurrentClassOnly)
        Returns the parameter with the given parameter identifier. If inCurrentClassOnly is false, if not found in the given class, then it looks in the parent class. If inCurrentClassOnly is true, only looks for parameter in the given class.
        Parameters:
        identifier -
        inCurrentClassOnly -
        Returns:
        Class' generic parameter
      • addElements

        public void addElements​(java.util.Collection<ClassTypeElement> elements)
      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toLabel

        public java.lang.String toLabel()
        Overrides:
        toLabel in class DataType
      • getTupleType

        public TupleType getTupleType()