Class XMLField
java.lang.Object
com.orchestranetworks.addon.dex.mapping.XMLField
- All Implemented Interfaces:
Field
Specifies the configuration used for an XML field.
- Since:
- 2.3.0
-
Constructor Summary
ConstructorDescriptionUsed to create a XML field with specified path.XMLField
(String xmlPath, FieldAttribute fieldAttribute) Used to create an XML field with the specified path andFieldAttribute
enumeration.Used to create an XML field with the specified path, name and label.Used to create an XML field with the specified path, name, label and index.XMLField
(String xmlPath, String name, String label, int index, FieldAttribute fieldAttribute) Used to create an XML field with the specified path, name, label, index andFieldAttribute
enumeration.XMLField
(String xmlPath, String name, String label, FieldAttribute fieldAttribute) Used to create an XML field with the specified path, name, label andFieldAttribute
enumeration. -
Method Summary
Modifier and TypeMethodDescriptionboolean
final FieldAttribute
Returns the specifiedFieldAttribute
for this XML field.int
getIndex()
Returns the specified field index.getLabel()
Returns the specified field label.getName()
Returns the specified field name.Returns the specified field path.int
hashCode()
void
Sets a label to this field.void
Sets a name to this field.
-
Constructor Details
-
XMLField
Used to create a XML field with specified path. If field path is null or empty, an exception will be thrown.- Throws:
DataExchangeException
-
XMLField
Used to create an XML field with the specified path andFieldAttribute
enumeration. If theFieldAttribute
enumeration is not aNO_SOURCE_FIELD
, the field path must not be null or empty. Otherwise, an exception will be thrown.- Throws:
DataExchangeException
- Since:
- 2.4.0
-
XMLField
Used to create an XML field with the specified path, name and label. If the field path is null or empty, an exception will be thrown.- Throws:
DataExchangeException
-
XMLField
public XMLField(String xmlPath, String name, String label, FieldAttribute fieldAttribute) throws DataExchangeException Used to create an XML field with the specified path, name, label andFieldAttribute
enumeration. If theFieldAttribute
enumeration is not aNO_SOURCE_FIELD
, the field path must not be null or empty. Otherwise, an exception will be thrown.- Throws:
DataExchangeException
- Since:
- 2.4.0
-
XMLField
Used to create an XML field with the specified path, name, label and index. If the field path is null or empty, an exception will be thrown.- Throws:
DataExchangeException
-
XMLField
public XMLField(String xmlPath, String name, String label, int index, FieldAttribute fieldAttribute) throws DataExchangeException Used to create an XML field with the specified path, name, label, index andFieldAttribute
enumeration. If theFieldAttribute
enumeration is not aNO_SOURCE_FIELD
, the field path must not be null or empty. Otherwise, an exception will be thrown.- Throws:
DataExchangeException
- Since:
- 2.4.0
-
-
Method Details
-
getName
Returns the specified field name. -
setName
Sets a name to this field. -
getLabel
Returns the specified field label. -
setLabel
Sets a label to this field. -
getXMLPath
Returns the specified field path. -
getIndex
public int getIndex()Returns the specified field index. -
hashCode
public int hashCode() -
equals
-
getFieldAttribute
Returns the specifiedFieldAttribute
for this XML field.- Since:
- 2.4.0
-