Class ClassDescriptorImpl

    • Constructor Detail

      • ClassDescriptorImpl

        public ClassDescriptorImpl()
    • Method Detail

      • setJavaClass

        public void setJavaClass​(java.lang.Class<?> javaClass)
        Sets the Java Class as described by this descriptor.
        Parameters:
        javaClass - The Java Class instance as described by this descriptor.
      • setExtends

        public void setExtends​(ClassDescriptor extend)
        Sets the descriptor of the class which this class extends.
        Parameters:
        extend - the descriptor of the class which this class extends.
      • setFields

        public void setFields​(FieldDescriptor[] fields)
        Sets the FieldDescriptors that describe the fields defined for this class.
        Parameters:
        fields - the FieldDescriptors that describe the fields defined for this class.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • getProperty

        public java.lang.Object getProperty​(java.lang.String name)
        Description copied from interface: PropertyHolder
        Get a property by its name.
        Specified by:
        getProperty in interface PropertyHolder
        Parameters:
        name - of the property
        Returns:
        value of the property
      • setProperty

        public void setProperty​(java.lang.String name,
                                java.lang.Object value)
        Description copied from interface: PropertyHolder
        Set a property specified by the name to the passed value.
        Specified by:
        setProperty in interface PropertyHolder
        Parameters:
        name - of the property
        value - of the property
      • addNature

        public void addNature​(java.lang.String nature)
        Description copied from interface: NatureExtendable
        Adds a specified nature.
        Specified by:
        addNature in interface NatureExtendable
        Parameters:
        nature - ID of the Nature
      • hasNature

        public boolean hasNature​(java.lang.String nature)
        Description copied from interface: NatureExtendable
        Checks if a specified nature has been added.
        Specified by:
        hasNature in interface NatureExtendable
        Parameters:
        nature - ID of the Nature
        Returns:
        true if the Nature ID was added.
      • setIdentities

        public void setIdentities​(FieldDescriptor[] identities)
        Sets the FieldDescriptors that describe the identities as defined for this class.
        Parameters:
        identities - the FieldDescriptors that describe the identities as defined for this class.
      • getIdentities

        public FieldDescriptor[] getIdentities()
        Returns the FieldDescriptors that describe the identities as defined for this class.
        Returns:
        the FieldDescriptors that describe the identities as defined for this class.