Class COSTemplate

    • Constructor Detail

      • COSTemplate

        public COSTemplate()
        NoArg constructor
      • COSTemplate

        public COSTemplate​(CreationTemplate temp,
                           String name)
                    throws UMSException
        Constructor with creation template and name parameter.
        Parameters:
        temp - the creation tenplate
        name - the name of this template
        Throws:
        UMSException - The exception thrown from the parent class constructor.
        See Also:
        (CreationTemplate, AttrSet)
    • Method Detail

      • getName

        public String getName()
        Returns the name of this COS template.
        Returns:
        The name of this COS template.
      • setPriority

        public void setPriority​(int priority)
        Sets the priority for this template. The priority determines which COS template will provide the attribute value if there are competing templates. A priority of "0" is the highest priority.
        Parameters:
        priority - Priority for this template.
      • addTemplateAttribute

        public void addTemplateAttribute​(String name,
                                         String value)
        Adds a name/value attribute pair for this template; for example, "postalcode" and "95020".
        Parameters:
        name - the name of the attribute
        value - the value of the attribute
      • removeTemplateAttribute

        public void removeTemplateAttribute​(String name)
        Removes a name/value attribute pair from this template.
        Parameters:
        name - the name of the attribute