Class Standard


  • public class Standard
    extends Object
    Datamodel for (Interface) Standard.
    Author:
    Niko Siltala
    • Constructor Detail

      • Standard

        public Standard​(String gid,
                        String stdCode)
        Constructs a Standard
        Parameters:
        gid - Gid of standard used in ontology. Full URI
        stdCode - Full identification code defining the standard
    • Method Detail

      • getGid

        public String getGid()
        Returns:
        the gid
      • getStdCode

        public String getStdCode()
        Returns:
        the stdCode
      • setStdCharacteristic

        public void setStdCharacteristic​(StdCharacteristic stdChar,
                                         boolean bRequired)
        Stores standard characteristic to lists of a Standard
        Parameters:
        stdChar - populated StdCharacteristic
        bRequired - set true if this characteristic is required one
      • getStdCharacteristic_byName

        public StdCharacteristic getStdCharacteristic_byName​(String name)
        Gets the standard characteristic by name.
        Parameters:
        name - Name of the StdCharacteristic
        Returns:
        StdCharacteristic. Null if not found.
      • getNbrOfChar_req

        public int getNbrOfChar_req()
        How many standard characteristics are defined as required?
        Returns:
        number of required characteristics
      • getStdChar_req

        public Collection<StdCharacteristic> getStdChar_req()
        Gets the list of required StdCharacteristics
        Returns:
        the stdChar_req
      • getStdChar_opt

        public Collection<StdCharacteristic> getStdChar_opt()
        Gets the list of optional StdCharacteristics
        Returns:
        the stdChar_opt