|
Betty v1.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchristophedelory.betty.xml.Child
christophedelory.betty.xml.IdDetails
public class IdDetails
The base representation of an XML object owning an identifier.
DbIdEntity
,
Serialized FormConstructor Summary | |
---|---|
IdDetails()
|
Method Summary | |
---|---|
protected void |
accept(XmlVisitor visitor)
Accepts the specified XML visitor. |
void |
addDescription(DescriptionDetails description)
Adds the specified description to this object. |
void |
addLink(LinkDetails link)
Adds the specified link to this object. |
DescriptionDetails |
findDescriptionByLocale(String locale)
Searches for a description in this XML element that matches the input parameter. |
LinkDetails |
findLinkByLocale(String locale)
Searches for a link in this XML element that matches the input parameter. |
List<DescriptionDetails> |
getDescriptions()
Returns the list of descriptions attached to this object. |
String |
getId()
Returns the object identifier. |
List<LinkDetails> |
getLinks()
Returns the list of links attached to this object. |
void |
setId(String id)
Initializes the object identifier. |
Methods inherited from class christophedelory.betty.xml.Child |
---|
getParent, getRoot, getRoot, getVersion, setParent, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdDetails()
Method Detail |
---|
public void setId(String id)
id
- an identifier. Shall not be null
.
NullPointerException
- if id
is null
.getId()
public String getId()
null
if not yet initialized.setId(String)
public List<DescriptionDetails> getDescriptions()
null
.addDescription(DescriptionDetails)
public void addDescription(DescriptionDetails description)
description
- a description. Shall not be null
.
NullPointerException
- if description
is null
.getDescriptions()
public DescriptionDetails findDescriptionByLocale(String locale)
locale
- a locale. May be null
.
null
if none was found.public List<LinkDetails> getLinks()
null
.addLink(LinkDetails)
public void addLink(LinkDetails link)
link
- a link. Shall not be null
.
NullPointerException
- if link
is null
.getLinks()
public LinkDetails findLinkByLocale(String locale)
locale
- a locale. May be null
.
null
if none was found.protected void accept(XmlVisitor visitor) throws Exception
visitor
- a visitor. Shall not be null
.
NullPointerException
- if visitor
is null
.
Exception
- if any error occurs during the visit.
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |