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
ConstructorsConstructorDescriptionUsed to create a XML field with specified path.XMLField(String xmlPath, FieldAttribute fieldAttribute) Used to create an XML field with the specified path andFieldAttributeenumeration.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 andFieldAttributeenumeration.XMLField(String xmlPath, String name, String label, FieldAttribute fieldAttribute) Used to create an XML field with the specified path, name, label andFieldAttributeenumeration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal FieldAttributeReturns the specifiedFieldAttributefor this XML field.intgetIndex()Returns the specified field index.getLabel()Returns the specified field label.getName()Returns the specified field name.Returns the specified field path.inthashCode()voidSets a label to this field.voidSets 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 andFieldAttributeenumeration. If theFieldAttributeenumeration 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 andFieldAttributeenumeration. If theFieldAttributeenumeration 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 andFieldAttributeenumeration. If theFieldAttributeenumeration 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 specifiedFieldAttributefor this XML field.- Since:
- 2.4.0
-