public class DnxSection
extends java.lang.Object
DnxSection defines a layer above the org.dom4j.Element for accessing a DNX section
Modifier and Type | Method and Description |
---|---|
DnxSectionRecord |
createRecord()
Creates a new record in the DNX section
The operation adds a new record to the underlying org.dom4j.Element and to the arrayList of the existing DnxSectionRecord objects. |
java.lang.String |
getId()
Returns the section's unique identifier, located in the "id" attribute.
|
DnxDocument |
getParent()
Returns the DNX document that contains this DNX section
|
java.util.List<DnxSectionRecord> |
getRecordList()
Returns the list of all records within the current section.
|
java.lang.String |
getSectionKeyValue(java.lang.String sectionKeyId)
Returns the value of the given section key as a string.
|
void |
removeRecord(DnxSectionRecord record) |
void |
removeRecord(int recordIndex) |
void |
updateSectionKey(java.lang.String keyId,
java.lang.String value)
Updates or creates a section key value.
|
public void removeRecord(int recordIndex)
public void removeRecord(DnxSectionRecord record)
public java.lang.String getId()
public DnxSectionRecord createRecord()
public DnxDocument getParent()
public java.util.List<DnxSectionRecord> getRecordList()
public void updateSectionKey(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.lang.String getSectionKeyValue(java.lang.String sectionKeyId)
sectionKeyId
- the section key identifier