Skip to content

Commit

Permalink
Created WebAppCommonDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Sep 20, 2013
1 parent 4cced46 commit 2fc4502
Show file tree
Hide file tree
Showing 7 changed files with 135 additions and 157 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/**
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.shrinkwrap.descriptor.api.javaee;

/**
*
* @author <a href="ggastald@redhat.com">George Gastaldi</a>
*/
public interface IconCommonType<T, ORIGIN extends IconCommonType<T, ORIGIN>>
{

/**
* Sets the <code>small-icon</code> element
* @param smallIcon the value for the element <code>small-icon</code>
* @return the current instance of <code>IconType<T></code>
*/
public abstract ORIGIN smallIcon(String smallIcon);

/**
* Returns the <code>small-icon</code> element
* @return the node defined for the element <code>small-icon</code>
*/
public abstract String getSmallIcon();

/**
* Removes the <code>small-icon</code> element
* @return the current instance of <code>IconType<T></code>
*/
public abstract ORIGIN removeSmallIcon();

/**
* Sets the <code>large-icon</code> element
* @param largeIcon the value for the element <code>large-icon</code>
* @return the current instance of <code>IconType<T></code>
*/
public abstract ORIGIN largeIcon(String largeIcon);

/**
* Returns the <code>large-icon</code> element
* @return the node defined for the element <code>large-icon</code>
*/
public abstract String getLargeIcon();

/**
* Removes the <cIconType<T>ode>large-icon</code> element
* @return the current instance of <code>IconType<T></code>
*/
public abstract ORIGIN removeLargeIcon();

/**
* Sets the <code>id</code> attribute
* @param id the value for the attribute <code>id</code>
* @return the current instance of <code>IconType<T></code>
*/
public abstract ORIGIN id(String id);

/**
* Returns the <code>id</code> attribute
* @return the value defined for the attribute <code>id</code>
*/
public abstract String getId();

/**
* Removes the <code>id</code> attribute
* @return the current instance of <code>IconType<T></code>
*/
public abstract ORIGIN removeId();

}
Original file line number Diff line number Diff line change
@@ -1,85 +1,14 @@
package org.jboss.shrinkwrap.descriptor.api.javaee5;
package org.jboss.shrinkwrap.descriptor.api.javaee5;

import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.javaee.IconCommonType;

/**
* This interface defines the contract for the <code> iconType </code> xsd type
* This interface defines the contract for the <code> iconType </code> xsd type
*
* @author <a href="mailto:ralf.battenfeld@bluewin.ch">Ralf Battenfeld</a>
* @author <a href="mailto:alr@jboss.org">Andrew Lee Rubinger</a>
*/
public interface IconType<T> extends Child<T>
public interface IconType<T> extends Child<T>, IconCommonType<T, IconType<T>>
{

// --------------------------------------------------------------------------------------------------------||
// ClassName: IconType ElementName: xsd:token ElementType : small-icon
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Sets the <code>small-icon</code> element
* @param smallIcon the value for the element <code>small-icon</code>
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> smallIcon(String smallIcon);

/**
* Returns the <code>small-icon</code> element
* @return the node defined for the element <code>small-icon</code>
*/
public String getSmallIcon();

/**
* Removes the <code>small-icon</code> element
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> removeSmallIcon();


// --------------------------------------------------------------------------------------------------------||
// ClassName: IconType ElementName: xsd:token ElementType : large-icon
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Sets the <code>large-icon</code> element
* @param largeIcon the value for the element <code>large-icon</code>
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> largeIcon(String largeIcon);

/**
* Returns the <code>large-icon</code> element
* @return the node defined for the element <code>large-icon</code>
*/
public String getLargeIcon();

/**
* Removes the <code>large-icon</code> element
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> removeLargeIcon();


// --------------------------------------------------------------------------------------------------------||
// ClassName: IconType ElementName: xsd:ID ElementType : id
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Sets the <code>id</code> attribute
* @param id the value for the attribute <code>id</code>
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> id(String id);

/**
* Returns the <code>id</code> attribute
* @return the value defined for the attribute <code>id</code>
*/
public String getId();

/**
* Removes the <code>id</code> attribute
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> removeId();
}
Original file line number Diff line number Diff line change
@@ -1,85 +1,14 @@
package org.jboss.shrinkwrap.descriptor.api.javaee6;
package org.jboss.shrinkwrap.descriptor.api.javaee6;

import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.javaee.IconCommonType;

/**
* This interface defines the contract for the <code> iconType </code> xsd type
* This interface defines the contract for the <code> iconType </code> xsd type
*
* @author <a href="mailto:ralf.battenfeld@bluewin.ch">Ralf Battenfeld</a>
* @author <a href="mailto:alr@jboss.org">Andrew Lee Rubinger</a>
*/
public interface IconType<T> extends Child<T>
public interface IconType<T> extends Child<T>, IconCommonType<T, IconType<T>>
{

// --------------------------------------------------------------------------------------------------------||
// ClassName: IconType ElementName: xsd:token ElementType : small-icon
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Sets the <code>small-icon</code> element
* @param smallIcon the value for the element <code>small-icon</code>
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> smallIcon(String smallIcon);

/**
* Returns the <code>small-icon</code> element
* @return the node defined for the element <code>small-icon</code>
*/
public String getSmallIcon();

/**
* Removes the <code>small-icon</code> element
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> removeSmallIcon();


// --------------------------------------------------------------------------------------------------------||
// ClassName: IconType ElementName: xsd:token ElementType : large-icon
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Sets the <code>large-icon</code> element
* @param largeIcon the value for the element <code>large-icon</code>
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> largeIcon(String largeIcon);

/**
* Returns the <code>large-icon</code> element
* @return the node defined for the element <code>large-icon</code>
*/
public String getLargeIcon();

/**
* Removes the <code>large-icon</code> element
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> removeLargeIcon();


// --------------------------------------------------------------------------------------------------------||
// ClassName: IconType ElementName: xsd:ID ElementType : id
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Sets the <code>id</code> attribute
* @param id the value for the attribute <code>id</code>
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> id(String id);

/**
* Returns the <code>id</code> attribute
* @return the value defined for the attribute <code>id</code>
*/
public String getId();

/**
* Removes the <code>id</code> attribute
* @return the current instance of <code>IconType<T></code>
*/
public IconType<T> removeId();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.shrinkwrap.descriptor.api.webapp;

import org.jboss.shrinkwrap.descriptor.api.Descriptor;

/**
*
* @author <a href="ggastald@redhat.com">George Gastaldi</a>
*/
public interface WebAppCommonDescriptor<T extends WebAppCommonDescriptor<T>> extends Descriptor
{
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebAppDescriptor ElementName: javaee:emptyType ElementType : distributable
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Sets the <code>distributable</code> element
*
* @return the current instance of <code>WebAppDescriptor</code>
*/
public T distributable();

/**
* Removes the <code>distributable</code> element
*
* @return the current instance of <code>WebAppDescriptor</code>
*/
public Boolean isDistributable();

/**
* Removes the <code>distributable</code> element
*
* @return the current instance of <code>WebAppDescriptor</code>
*/
public T removeDistributable();
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.jboss.shrinkwrap.descriptor.api.javaee5.SecurityRoleType;
import org.jboss.shrinkwrap.descriptor.api.javaeewebservicesclient12.ServiceRefType;
import org.jboss.shrinkwrap.descriptor.api.jsp21.JspConfigType;
import org.jboss.shrinkwrap.descriptor.api.webapp.WebAppCommonDescriptor;

/**
* <p>
Expand All @@ -35,7 +36,7 @@
* @author <a href="mailto:ralf.battenfeld@bluewin.ch">Ralf Battenfeld</a>
* @author <a href="mailto:alr@jboss.org">Andrew Lee Rubinger</a>
*/
public interface WebAppDescriptor extends Descriptor, DescriptorNamespace<WebAppDescriptor>
public interface WebAppDescriptor extends Descriptor, DescriptorNamespace<WebAppDescriptor>, WebAppCommonDescriptor<WebAppDescriptor>
{

// --------------------------------------------------------------------------------------------------------||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.jboss.shrinkwrap.descriptor.api.javaee6.SecurityRoleType;
import org.jboss.shrinkwrap.descriptor.api.javaeewebservicesclient13.ServiceRefType;
import org.jboss.shrinkwrap.descriptor.api.jsp22.JspConfigType;
import org.jboss.shrinkwrap.descriptor.api.webapp.WebAppCommonDescriptor;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.AbsoluteOrderingType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.ErrorPageType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.FilterMappingType;
Expand Down Expand Up @@ -49,7 +50,7 @@
* @author <a href="mailto:ralf.battenfeld@bluewin.ch">Ralf Battenfeld</a>
* @author <a href="mailto:alr@jboss.org">Andrew Lee Rubinger</a>
*/
public interface WebAppDescriptor extends Descriptor, DescriptorNamespace<WebAppDescriptor>
public interface WebAppDescriptor extends Descriptor, DescriptorNamespace<WebAppDescriptor>, WebAppCommonDescriptor<WebAppDescriptor>
{

// --------------------------------------------------------------------------------------------------------||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.jboss.shrinkwrap.descriptor.api.javaee7.SecurityRoleType;
import org.jboss.shrinkwrap.descriptor.api.javaeewebservicesclient14.ServiceRefType;
import org.jboss.shrinkwrap.descriptor.api.jsp23.JspConfigType;
import org.jboss.shrinkwrap.descriptor.api.webapp.WebAppCommonDescriptor;
import org.jboss.shrinkwrap.descriptor.api.webcommon31.ErrorPageType;
import org.jboss.shrinkwrap.descriptor.api.webcommon31.FilterMappingType;
import org.jboss.shrinkwrap.descriptor.api.webcommon31.FilterType;
Expand Down Expand Up @@ -53,7 +54,7 @@
* @author <a href="mailto:ralf.battenfeld@bluewin.ch">Ralf Battenfeld</a>
* @author <a href="mailto:alr@jboss.org">Andrew Lee Rubinger</a>
*/
public interface WebAppDescriptor extends Descriptor, DescriptorNamespace<WebAppDescriptor>
public interface WebAppDescriptor extends Descriptor, DescriptorNamespace<WebAppDescriptor>, WebAppCommonDescriptor<WebAppDescriptor>
{

// --------------------------------------------------------------------------------------------------------||
Expand Down

0 comments on commit 2fc4502

Please sign in to comment.