Interface FieldElementHolder

    • Method Detail

      • addFields

        void addFields​(PersistenceFieldElement[] fields)
                throws ModelException
        Add the supplied fields to the collection of fields maintained by this holder.
        Parameters:
        fields - the array of fields to be added
        Throws:
        ModelException - if impossible
      • removeFields

        void removeFields​(PersistenceFieldElement[] fields)
                   throws ModelException
        Removed the supplied fields from the collection of fields maintained by this holder.
        Parameters:
        fields - the array of fields to be removed
        Throws:
        ModelException - if impossible
      • getFields

        PersistenceFieldElement[] getFields()
        Returns the collection of fields maintained by this holder in the form of an array.
        Returns:
        the fields maintained by this holder
      • setFields

        void setFields​(PersistenceFieldElement[] fields)
                throws ModelException
        Sets the collection of fields maintained by this holder to the contents of the supplied array.
        Parameters:
        fields - the fields maintained by this holder
        Throws:
        ModelException - if impossible
      • getField

        PersistenceFieldElement getField​(String name)
        Returns the field with the supplied name from the collection of fields maintained by this holder.
        Parameters:
        name - the name to match
        Returns:
        the field with the supplied name, null if none exists
      • containsField

        boolean containsField​(PersistenceFieldElement field)
        Tests whether the supplied field is in the collection of fields maintained by this holder.
        Parameters:
        field - the field to be tested