org.jboss.shrinkwrap.descriptor.impl.webcommon30
Class LocaleEncodingMappingTypeImpl<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.impl.webcommon30.LocaleEncodingMappingTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, LocaleEncodingMappingType<T>

public class LocaleEncodingMappingTypeImpl<T>
extends java.lang.Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, LocaleEncodingMappingType<T>

This class implements the locale-encoding-mappingType xsd type

Original Documentation:



The locale-encoding-mapping contains locale name and
encoding name. The locale name must be either "Language-code",
such as "ja", defined by ISO-639 or "Language-code_Country-code",
such as "ja_JP". "Country code" is defined by ISO-3166.


Since:
Generation date :2011-07-19T22:55:02.759+02:00
Author:
Ralf Battenfeld

Constructor Summary
LocaleEncodingMappingTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
LocaleEncodingMappingTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
           
 
Method Summary
 java.lang.String getEncoding()
          Returns the encoding element
 java.lang.String getLocale()
          Returns the locale element
 LocaleEncodingMappingType<T> removeEncoding()
          Removes the encoding element
 LocaleEncodingMappingType<T> removeLocale()
          Removes the locale element
 LocaleEncodingMappingType<T> setEncoding(java.lang.String encoding)
          If not already created, a new encoding element with the given value will be created.
 LocaleEncodingMappingType<T> setLocale(java.lang.String locale)
          If not already created, a new locale element with the given value will be created.
 T up()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocaleEncodingMappingTypeImpl

public LocaleEncodingMappingTypeImpl(T t,
                                     java.lang.String nodeName,
                                     org.jboss.shrinkwrap.descriptor.spi.Node node)

LocaleEncodingMappingTypeImpl

public LocaleEncodingMappingTypeImpl(T t,
                                     java.lang.String nodeName,
                                     org.jboss.shrinkwrap.descriptor.spi.Node node,
                                     org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail

up

public T up()
Specified by:
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>

setLocale

public LocaleEncodingMappingType<T> setLocale(java.lang.String locale)
If not already created, a new locale element with the given value will be created. Otherwise, the existing locale element will be updated with the given value.

Specified by:
setLocale in interface LocaleEncodingMappingType<T>
Returns:
the current instance of LocaleEncodingMappingType

removeLocale

public LocaleEncodingMappingType<T> removeLocale()
Removes the locale element

Specified by:
removeLocale in interface LocaleEncodingMappingType<T>
Returns:
the current instance of LocaleEncodingMappingType

getLocale

public java.lang.String getLocale()
Returns the locale element

Specified by:
getLocale in interface LocaleEncodingMappingType<T>
Returns:
the node defined for the element locale

setEncoding

public LocaleEncodingMappingType<T> setEncoding(java.lang.String encoding)
If not already created, a new encoding element with the given value will be created. Otherwise, the existing encoding element will be updated with the given value.

Specified by:
setEncoding in interface LocaleEncodingMappingType<T>
Returns:
the current instance of LocaleEncodingMappingType

removeEncoding

public LocaleEncodingMappingType<T> removeEncoding()
Removes the encoding element

Specified by:
removeEncoding in interface LocaleEncodingMappingType<T>
Returns:
the current instance of LocaleEncodingMappingType

getEncoding

public java.lang.String getEncoding()
Returns the encoding element

Specified by:
getEncoding in interface LocaleEncodingMappingType<T>
Returns:
the node defined for the element encoding