Class PropertyDescriptor


  • public class PropertyDescriptor
    extends Object
    Holds a description of a property including the property name and property nameSpace

    Includes a helper function to default the namespace.

    Author:
    Gary O'Neall
    • Constructor Detail

      • PropertyDescriptor

        public PropertyDescriptor​(String name,
                                  String nameSpace)
        Parameters:
        name - Property name as defined in the SPDX specification
        nameSpace - Property nameSpace as defined in the SPDX specification
    • Method Detail

      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getNameSpace

        public String getNameSpace()
        Returns:
        the nameSpace
      • setNameSpace

        public void setNameSpace​(String nameSpace)
        Parameters:
        nameSpace - the nameSpace to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object