org.jboss.ironjacamar.impl
Class ExtensionTypeImpl<T>

java.lang.Object
  extended by org.jboss.ironjacamar.impl.ExtensionTypeImpl<T>
All Implemented Interfaces:
ExtensionType<T>, Child<T>

public class ExtensionTypeImpl<T>
extends Object
implements Child<T>, ExtensionType<T>

This class implements the extensionType xsd type

Since:
Generation date :2013-01-26T19:27:02.583+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Constructor Summary
ExtensionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
ExtensionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 ExtensionType<T> className(String className)
          Sets the class-name attribute
 String getClassName()
          Returns the class-name attribute
 ConfigPropertyType<ExtensionType<T>> getOrCreateConfigProperty()
          If not already created, a new config-property element with the given value will be created.
 ExtensionType<T> removeClassName()
          Removes the class-name attribute
 ExtensionType<T> removeConfigProperty()
          Removes the config-property element
 T up()
          Returns the parent of this Child
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionTypeImpl

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

ExtensionTypeImpl

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

up

public T up()
Description copied from interface: Child
Returns the parent of this Child

Specified by:
up in interface Child<T>
Returns:
The parent of this Child

getOrCreateConfigProperty

public ConfigPropertyType<ExtensionType<T>> getOrCreateConfigProperty()
If not already created, a new config-property element with the given value will be created. Otherwise, the existing config-property element will be returned.

Specified by:
getOrCreateConfigProperty in interface ExtensionType<T>
Returns:
a new or existing instance of ConfigPropertyType>

removeConfigProperty

public ExtensionType<T> removeConfigProperty()
Removes the config-property element

Specified by:
removeConfigProperty in interface ExtensionType<T>
Returns:
the current instance of ExtensionType

className

public ExtensionType<T> className(String className)
Sets the class-name attribute

Specified by:
className in interface ExtensionType<T>
Parameters:
className - the value for the attribute class-name
Returns:
the current instance of ExtensionType

getClassName

public String getClassName()
Returns the class-name attribute

Specified by:
getClassName in interface ExtensionType<T>
Returns:
the value defined for the attribute class-name

removeClassName

public ExtensionType<T> removeClassName()
Removes the class-name attribute

Specified by:
removeClassName in interface ExtensionType<T>
Returns:
the current instance of ExtensionType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.