public class FieldDefinitionImpl extends Object implements FieldDefinition
Modifier and Type | Field and Description |
---|---|
protected String |
field |
protected String |
schema |
Modifier | Constructor and Description |
---|---|
protected |
FieldDefinitionImpl() |
|
FieldDefinitionImpl(String schema,
String field) |
Modifier and Type | Method and Description |
---|---|
FieldDefinition |
clone()
Returns a clone instance of this field definition.
|
boolean |
equals(Object obj) |
String |
getFieldName()
Returns the field name, following XPath conventions.
|
String |
getPropertyName()
Returns the computed property name with schema and field information.
|
String |
getSchemaName()
Optional schema name.
|
String |
toString() |
protected FieldDefinitionImpl()
public FieldDefinitionImpl(String schema, String field)
public String getSchemaName()
FieldDefinition
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.
getSchemaName
in interface FieldDefinition
public String getFieldName()
FieldDefinition
If the field is prefixed, it should contain the prefix followed by ':'. Examples: dc:title, dc:author/name
getFieldName
in interface FieldDefinition
public String getPropertyName()
FieldDefinition
getPropertyName
in interface FieldDefinition
public FieldDefinition clone()
FieldDefinition
Useful for conversion of layout definition during export.
clone
in interface FieldDefinition
clone
in class Object
Copyright © 2018 Nuxeo. All rights reserved.