Class FieldDefinitionImpl

java.lang.Object
org.nuxeo.ecm.platform.forms.layout.api.impl.FieldDefinitionImpl
All Implemented Interfaces:
Serializable, FieldDefinition

public class FieldDefinitionImpl extends Object implements FieldDefinition
Since:
5.4
Author:
Anahide Tchertchian
See Also:
  • Field Details

    • schema

      protected String schema
    • field

      protected String field
  • Constructor Details

    • FieldDefinitionImpl

      protected FieldDefinitionImpl()
    • FieldDefinitionImpl

      public FieldDefinitionImpl(String schema, String field)
  • Method Details

    • getSchemaName

      public String getSchemaName()
      Description copied from interface: FieldDefinition
      Optional schema name.

      If the field is used to identify a sub field within a complex type, no schema name is needed. Otherwise, the field will not be resolved correctly if the property does not have a prefix.

      Specified by:
      getSchemaName in interface FieldDefinition
    • getFieldName

      public String getFieldName()
      Description copied from interface: FieldDefinition
      Returns the field name, following XPath conventions.

      If the field is prefixed, it should contain the prefix followed by ':'. Examples: dc:title, dc:author/name

      Specified by:
      getFieldName in interface FieldDefinition
    • getPropertyName

      public String getPropertyName()
      Description copied from interface: FieldDefinition
      Returns the computed property name with schema and field information.
      Specified by:
      getPropertyName in interface FieldDefinition
    • clone

      public FieldDefinition clone()
      Description copied from interface: FieldDefinition
      Returns a clone instance of this field definition.

      Useful for conversion of layout definition during export.

      Specified by:
      clone in interface FieldDefinition
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      7.1
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Since:
      7.2