Class FormChoiceAttribute

  • All Implemented Interfaces:
    IComponent

    public class FormChoiceAttribute
    extends AttributeBase
    Attribute to set form of name (qualified or unqualified).
    Author:
    Dennis M. Sosnoski
    • Field Detail

      • s_allowedAttributes

        public static final StringArray s_allowedAttributes
        List of allowed attribute names.
      • s_formValues

        public static final EnumSet s_formValues
      • m_formType

        private int m_formType
        'form' attribute type code (-1 if not set).
    • Constructor Detail

      • FormChoiceAttribute

        public FormChoiceAttribute​(SchemaBase owner)
        Constructor.
        Parameters:
        owner - owning element
    • Method Detail

      • unmarshalFactory

        private static FormChoiceAttribute unmarshalFactory​(IUnmarshallingContext ictx)
        Factory method for use during unmarshalling. This gets the owning element from the unmarshalling context, and creates an instance of the attribute tied to that element.
        Parameters:
        ictx -
        Returns:
        constructed instance
      • getForm

        public int getForm()
        Get 'form' attribute type code.
        Returns:
        type
      • setForm

        public void setForm​(int type)
        Set 'form' attribute type code.
        Parameters:
        type -
      • getFormText

        public java.lang.String getFormText()
        Get 'form' attribute text.
        Returns:
        text (null if not set)
      • setFormText

        private void setFormText​(java.lang.String text,
                                 IUnmarshallingContext ictx)
        Set 'form' attribute text. This method is provided only for use when unmarshalling.
        Parameters:
        text -
        ictx -
      • isQualified

        public boolean isQualified​(boolean def)
        Check if qualified.
        Parameters:
        def - default if not overridden
        Returns:
        true if qualified, false if not