Class CapacityTypeImpl<T>

  • All Implemented Interfaces:
    CapacityType<T>, org.jboss.shrinkwrap.descriptor.api.Child<T>

    public class CapacityTypeImpl<T>
    extends Object
    implements org.jboss.shrinkwrap.descriptor.api.Child<T>, CapacityType<T>
    This class implements the capacityType xsd type
    • Constructor Detail

      • CapacityTypeImpl

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

        public CapacityTypeImpl​(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()
        Specified by:
        up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
      • getOrCreateIncrementer

        public ExtensionType<CapacityType<T>> getOrCreateIncrementer()
        If not already created, a new incrementer element with the given value will be created. Otherwise, the existing incrementer element will be returned.
        Specified by:
        getOrCreateIncrementer in interface CapacityType<T>
        Returns:
        a new or existing instance of ExtensionType>
      • getOrCreateDecrementer

        public ExtensionType<CapacityType<T>> getOrCreateDecrementer()
        If not already created, a new decrementer element with the given value will be created. Otherwise, the existing decrementer element will be returned.
        Specified by:
        getOrCreateDecrementer in interface CapacityType<T>
        Returns:
        a new or existing instance of ExtensionType>