public class DnxSectionRecord
extends java.lang.Object
DnxSectionRecord defines a layer above the org.dom4j.Element for accessing a DNX record
Modifier and Type | Method and Description |
---|---|
DnxRecordKey |
createKey(java.lang.String id,
java.lang.String q1,
java.lang.String q2,
java.lang.String value,
boolean emptyValue)
Creates a new section key in the current DNXRecord with id,q1,q2 and the value given as parameters
The operation adds a new section key to the underlying org.dom4j.Element and to the arrayList of existing DnxRecordKey objects. |
void |
deleteAttributeByName(java.lang.String name) |
void |
deleteAttributeByName(java.lang.String name,
int occurence) |
org.dom4j.Element |
getElement() |
DnxRecordKey |
getKeyById(java.lang.String id)
Returns the DnxRecordKey object with the given ID that the current DNXSectionRecord contains
|
java.util.List<DnxRecordKey> |
getKeylist()
Returns the list of DnxRecordKey that the current DNXSectionRecord contains
|
java.lang.String |
getSectionKeyValue(java.lang.String sectionKeyId)
Returns the value of the given section key as a string.
|
void |
updateKey(java.lang.String keyId,
java.lang.String value)
Updates or creates a section key value.
|
public void deleteAttributeByName(java.lang.String name)
public void deleteAttributeByName(java.lang.String name, int occurence)
public DnxRecordKey createKey(java.lang.String id, java.lang.String q1, java.lang.String q2, java.lang.String value, boolean emptyValue)
id
- The identifier of the section keyq1
- The first qualifier of the section keyq2
- The second qualifier of the section keyvalue
- The value of the section keyemptyValue
- Flag that indicate that value can be emptypublic DnxRecordKey getKeyById(java.lang.String id)
id
- the identifier of the section keypublic void updateKey(java.lang.String keyId, java.lang.String value)
keyId
- the section key identifiervalue
- The new string value of the key, replacing the old string valuepublic java.util.List<DnxRecordKey> getKeylist()
public java.lang.String getSectionKeyValue(java.lang.String sectionKeyId)
sectionKeyId
- the section key identifierpublic org.dom4j.Element getElement()