Class InterfaceImpl


  • public class InterfaceImpl
    extends Object
    Author:
    Niko Siltala
    • Constructor Detail

      • InterfaceImpl

        public InterfaceImpl​(String gid,
                             String stdCode)
        Constructor
        Parameters:
        gid - GID used in ontology
        stdCode - implemented standard as full std code
    • Method Detail

      • makeStdID

        public static String makeStdID​(String stdCode,
                                       InterfaceImpl.eGender gender)
        Generates StdId as combination of standard code and interface gender. This can be used as key for interface implementation.
        Parameters:
        stdCode - full code of standard
        gender - gender
        Returns:
        generated StdId
      • getStdCodeFromStdID

        public static String getStdCodeFromStdID​(String stdId)
        Gets the standard code from generated StdId
        Parameters:
        stdId -
        Returns:
        full code of standard
      • getOppositeStdID

        public static String getOppositeStdID​(String stdId)
        Creates opposite or counter part for a StdId
        Parameters:
        stdId - StdId
        Returns:
        fitting counter part of stdId
      • setGender

        public void setGender​(InterfaceImpl.eGender gender)
        Parameters:
        gender - the gender to set
      • setIfCategory

        public void setIfCategory​(InterfaceImpl.eIfCategory ifCategory)
        Parameters:
        ifCategory - the ifCategory to set
      • getiOccurrence_min

        public int getiOccurrence_min()
        Returns:
        the iOccurrence_min
      • setiOccurrence_min

        public void setiOccurrence_min​(int iOccurrence_min)
        Parameters:
        iOccurrence_min - the iOccurrence_min to set
      • getiOccurrence_max

        public int getiOccurrence_max()
        Returns:
        the iOccurrence_max
      • setiOccurrence_max

        public void setiOccurrence_max​(int iOccurrence_max)
        Parameters:
        iOccurrence_max - the iOccurrence_max to set
      • isBaseInterface

        public boolean isBaseInterface()
        Returns:
        the baseInterface
      • setBaseInterface

        public void setBaseInterface​(boolean baseInterface)
        Parameters:
        baseInterface - the baseInterface to set
      • getGid

        public String getGid()
        Returns:
        the gid
      • getStdCode

        public String getStdCode()
        Returns:
        the stdCode
      • getPurposes

        public Set<String> getPurposes()
        Returns:
        the purposes