Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ target
bin
metadata-parser-test/src/main/resources/META-INF
metadata-parser-test/src/test/java
api-javaee/src/
api-misc/src/
impl-jboss/src/main/java/
impl-misc/src/main/java/
api-javaee/src
api-misc/src
impl-jboss/src
impl-misc/src
impl-javaee/src
impl-jboss/src
impl-misc/src
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.jboss.shrinkwrap.descriptor.api;

import java.util.List;

public interface DescriptorNamespaceReader<T>
{

/**
* Returns all existing namespaces.
* @return a list of all existing namespaces.
*/
public List<String> getNamespaces();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.shrinkwrap.descriptor.api;

/**
* A read-only view which supports conversion to a {@link Mutable} view.
*
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
*/
public interface Immutable<MUTABLEVIEW extends Mutable<IMMUTABLEVIEW, MUTABLEVIEW>, IMMUTABLEVIEW extends Immutable<MUTABLEVIEW, IMMUTABLEVIEW>> {

/**
* Returns the mutable view of this object.
*
* @return
*/
MUTABLEVIEW toMutable();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.shrinkwrap.descriptor.api;

/**
* A mutable view which supports converstion to a read-only {@link Immutable} view.
*
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
*/
public interface Mutable<IMMUTABLEVIEW extends Immutable<MUTABLEVIEW, IMMUTABLEVIEW>, MUTABLEVIEW extends Mutable<IMMUTABLEVIEW, MUTABLEVIEW>> {

/**
* Returns the immutable view of this object.
*
* @return
*/
IMMUTABLEVIEW toImmutable();
}
36 changes: 36 additions & 0 deletions api-javaee-prototype/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<!-- Parent -->
<parent>
<groupId>org.jboss.shrinkwrap.descriptors</groupId>
<artifactId>shrinkwrap-descriptors-parent</artifactId>
<version>2.0.0-alpha-4-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<!-- Model Version -->
<modelVersion>4.0.0</modelVersion>

<!-- Artifact Configuration -->
<artifactId>shrinkwrap-descriptors-api-javaee-prototype</artifactId>
<name>ShrinkWrap Descriptors Prototype Java EE API</name>
<description>Client View of the ShrinkWrap Descriptors Project</description>

<dependencies>

<dependency>
<groupId>org.jboss.shrinkwrap.descriptors</groupId>
<artifactId>shrinkwrap-descriptors-api-base</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
package org.jboss.shrinkwrap.descriptor.api.application5;

import java.util.List;

import org.jboss.shrinkwrap.descriptor.api.Immutable;
/**
* <p>
* This deployment descriptor provides the functionalities as described in the specification
* <p>
* Example:
* <p>
* <code>
* ApplicationDescriptor descriptor = Descriptors.create(ApplicationDescriptor.class);
* </code>
*
*
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
* @since Generation date :2012-07-08T16:29:08.216+02:00
*/
public interface ApplicationDescriptor extends ApplicationDescriptorBase<ApplicationType,ApplicationDescriptor>,
Immutable<MutableApplicationDescriptor,ApplicationDescriptor> {

// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationDescriptor ElementName: xsd:string ElementType : description
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Returns all <code>description</code> elements
* @return list of <code>description</code>
*/
public List<String> getAllDescription();

// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationDescriptor ElementName: xsd:token ElementType : display-name
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Returns all <code>display-name</code> elements
* @return list of <code>display-name</code>
*/
public List<String> getAllDisplayName();


// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationDescriptor ElementName: javaee:moduleType ElementType : module
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||

/**
* Returns all <code>module</code> elements
* @return list of <code>module</code>
*/
public List<ModuleTypeReader<ApplicationDescriptor>> getAllModule();



// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationDescriptor ElementName: xsd:token ElementType : library-directory
// MaxOccurs: -1 isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Returns the <code>library-directory</code> element
* @return the node defined for the element <code>library-directory</code>
*/
public String getLibraryDirectory();


// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationDescriptor ElementName: xsd:token ElementType : version
// MaxOccurs: - isGeneric: false isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Returns the <code>version</code> attribute
* @return the value defined for the attribute <code>version</code>
*/
public String getVersion();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.jboss.shrinkwrap.descriptor.api.application5;

import org.jboss.shrinkwrap.descriptor.api.Descriptor;
/**
* <p>
* This deployment descriptor provides the functionalities as described in the specification
* <p>
* Example:
* <p>
* <code>
* ApplicationDescriptorBase descriptor = Descriptors.create(ApplicationDescriptorBase.class);
* </code>
*
*
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
* @since Generation date :2012-07-08T16:29:08.216+02:00
*/
public interface ApplicationDescriptorBase<ROOTTYPE
extends ApplicationTypeBase<ROOTTYPE, DESCRIPTORTYPE>, DESCRIPTORTYPE
extends ApplicationDescriptorBase<ROOTTYPE, DESCRIPTORTYPE>>
extends Descriptor {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
package org.jboss.shrinkwrap.descriptor.api.application5;

import java.util.List;

/**
* This class implements the <code> applicationType </code> xsd type
*
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
* @since Generation date :2012-07-08T16:29:08.216+02:00
*/
public interface ApplicationType extends ApplicationTypeBase<ApplicationType, ApplicationDescriptor> {

// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationType ElementName: xsd:string ElementType : description
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Returns all <code>description</code> elements
* @return list of <code>description</code>
*/
public List<String> getAllDescription();

// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationType ElementName: xsd:token ElementType : display-name
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Returns all <code>display-name</code> elements
* @return list of <code>display-name</code>
*/
public List<String> getAllDisplayName();

// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationType ElementName: javaee:moduleType ElementType : module
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||

/**
* Returns all <code>module</code> elements
* @return list of <code>module</code>
*/
public List<ModuleTypeReader<ApplicationType>> getAllModule();



// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationType ElementName: xsd:token ElementType : library-directory
// MaxOccurs: -1 isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Returns the <code>library-directory</code> element
* @return the node defined for the element <code>library-directory</code>
*/
public String getLibraryDirectory();


// --------------------------------------------------------------------------------------------------------||
// ClassName: ApplicationType ElementName: xsd:token ElementType : version
// MaxOccurs: - isGeneric: false isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||

/**
* Returns the <code>version</code> attribute
* @return the value defined for the attribute <code>version</code>
*/
public String getVersion();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.jboss.shrinkwrap.descriptor.api.application5;

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

/**
* Base support for read-only views of this descriptors root element. Not intended for direct use by users;
*
* @param <RETURNTYPE>
* The true type to be returned for <code>this</code> references (covarient return)
*
* @param <PARENTTYPE>
* The type of this elements parent
*
* @author <a href="mailto:[email protected]">Ralf Battenfeld</a>
* @author <a href="mailto:[email protected]">Andrew Lee Rubinger</a>
* @since Generation date :2012-07-08T16:29:08.216+02:00
*/
public interface ApplicationTypeBase<RETURNTYPE extends ApplicationTypeBase<RETURNTYPE, PARENTTYPE>, PARENTTYPE> extends Child<PARENTTYPE> {
}
Loading