Betty v1.1.0

christophedelory.betty.xml
Class AbstractMetadataDetails

java.lang.Object
  extended by christophedelory.betty.xml.Child
      extended by christophedelory.betty.xml.AbstractMetadataDetails
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DescriptionDetails, LinkDetails

public abstract class AbstractMetadataDetails
extends Child

A metadata, associated to a locale.

Version:
$Revision$
Author:
Christophe Delory
See Also:
MetadataBean, Serialized Form

Constructor Summary
AbstractMetadataDetails()
           
 
Method Summary
 void accept(XmlVisitor visitor)
          Accepts the specified XML visitor.
 String getLocaleName()
          Returns the locale name.
abstract  String getType()
          Returns the type of this metadata.
 String getValue()
          Returns the value of this metadata.
 void setLocaleName(String localeName)
          Initializes the locale name.
 void setValue(String value)
          Initializes the value of this metadata.
 
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

AbstractMetadataDetails

public AbstractMetadataDetails()
Method Detail

setLocaleName

public void setLocaleName(String localeName)
Initializes the locale name.

Parameters:
localeName - the name of a locale, with the language, country and variant separated by underbars. Case insensitive. May be null.
See Also:
getLocaleName()

getLocaleName

public String getLocaleName()
Returns the locale name.

Returns:
the name of a locale, with the language, country and variant separated by underbars. May be null.
See Also:
setLocaleName(String)

setValue

public void setValue(String value)
Initializes the value of this metadata.

Parameters:
value - a metadata value. Shall not be null.
Throws:
NullPointerException - if value is null.
See Also:
getValue()

getValue

public String getValue()
Returns the value of this metadata.

Returns:
a metadata value. Shall not be null.
See Also:
setValue(String)

getType

public abstract String getType()
Returns the type of this metadata.

Returns:
a metadata type. Shall not be null.

accept

public void accept(XmlVisitor visitor)
            throws Exception
Accepts the specified XML visitor.

Parameters:
visitor - a visitor. Shall not be null.
Throws:
NullPointerException - if visitor is null.
Exception - if any error occurs during the visit.

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.