-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
135 additions
and
157 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
api/src/main/java/org/jboss/shrinkwrap/descriptor/api/javaee/IconCommonType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
|
||
} |
83 changes: 6 additions & 77 deletions
83
api/src/main/java/org/jboss/shrinkwrap/descriptor/api/javaee5/IconType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
83 changes: 6 additions & 77 deletions
83
api/src/main/java/org/jboss/shrinkwrap/descriptor/api/javaee6/IconType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
43 changes: 43 additions & 0 deletions
43
api/src/main/java/org/jboss/shrinkwrap/descriptor/api/webapp/WebAppCommonDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters