Class ModelIndex

  • All Implemented Interfaces:
    java.io.Serializable

    @ThreadSafe
    public final class ModelIndex
    extends ModelChild
    An object that models the <index> element.
    See Also:
    Serialized Form
    • Method Detail

      • create

        public static ModelIndex create​(ModelEntity modelEntity,
                                        java.lang.String description,
                                        java.lang.String name,
                                        java.util.List<ModelIndex.Field> fields,
                                        boolean unique)
        Returns a new ModelIndex instance, initialized with the specified values.
        Parameters:
        modelEntity - The ModelEntity this index is a member of.
        description - The index description.
        name - The index name.
        fields - The fields that are included in this index.
        unique - true if this index returns unique values.
      • create

        public static ModelIndex create​(ModelEntity modelEntity,
                                        org.w3c.dom.Element indexElement)
        Returns a new ModelIndex instance, initialized with the specified values.
        Parameters:
        modelEntity - The ModelEntity this index is a member of.
        indexElement - The <index> element containing the values for this index.
      • getName

        public java.lang.String getName()
        Returns the index name.
      • getUnique

        public boolean getUnique()
        Returns true if this index returns unique values.
      • getFields

        public java.util.List<ModelIndex.Field> getFields()
        Returns the fields included in this index.
      • toXmlElement

        public org.w3c.dom.Element toXmlElement​(org.w3c.dom.Document document)