|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.tools.makeldif.TemplateEntry
public class TemplateEntry
This class defines an entry that is generated using a MakeLDIF branch or template.
Constructor Summary | |
---|---|
TemplateEntry(Branch branch)
Creates a new template entry that will be associated with the provided branch. |
|
TemplateEntry(Template template,
DN parentDN)
Creates a new template entry that will be associated with the provided template. |
Method Summary | |
---|---|
void |
addValue(TemplateValue value)
Adds the provided template value to this entry. |
Branch |
getBranch()
Retrieves the branch used to generate this entry. |
DN |
getDN()
Retrieves the DN for this template entry, if it is known. |
DN |
getParentDN()
Retrieves the DN of the parent entry for this template entry. |
Template |
getTemplate()
Retrieves the template used to generate this entry. |
TemplateValue |
getValue(AttributeType attributeType)
Retrieves the value for the specified attribute, if defined. |
java.util.List<TemplateValue> |
getValues(AttributeType attributeType)
Retrieves the set of values for the specified attribute, if defined. |
boolean |
hasAttribute(AttributeType attributeType)
Indicates whether this entry contains one or more values for the specified attribute type. |
Entry |
toEntry()
Retrieves this template entry as an Entry object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateEntry(Branch branch)
branch
- The branch to use when creating this template entry.public TemplateEntry(Template template, DN parentDN)
template
- The template used to generate this entry.parentDN
- The DN of the parent entry for this template entry.Method Detail |
---|
public Branch getBranch()
null
if it
is associated with a template instead of a branch.public Template getTemplate()
null
if
it is associated with a branch instead of a template.public DN getParentDN()
null
if there is no parent DN.public DN getDN()
null
if it cannot yet be determined.public boolean hasAttribute(AttributeType attributeType)
attributeType
- The attribute type for which to make the
determination.
true
if this entry contains one or more values for
the specified attribute type, or false
if not.public TemplateValue getValue(AttributeType attributeType)
attributeType
- The attribute type for which to retrieve the value.
null
if
there are no values for that attribute type.public java.util.List<TemplateValue> getValues(AttributeType attributeType)
attributeType
- The attribute type for which to retrieve the set of
values.
null
if there are no values for that attribute type.public void addValue(TemplateValue value)
value
- The value to add to this entry.public Entry toEntry()
Entry
object.
Entry
object for this template entry.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |