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:alr@jboss.org">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:alr@jboss.org">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,33 @@
/*
* 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.application5;

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


/**
* Read-only view of a web application deployment descriptor (ie. web.xml).
*
* @author <a href="mailto:alr@jboss.org">Andrew Lee Rubinger</a>
*/
/*
* TODO: This is for use by end-users, and correctly closes the generic context
*/
public interface ApplicationDescriptor extends Descriptor, ApplicationType<ApplicationDescriptor> {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package org.jboss.shrinkwrap.descriptor.api.application5;

import java.util.List;

/**
* This interface defines the contract for the <code> applicationType </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>
* @since Generation date :2012-04-29T13:08:39.494+02:00
*/
public interface ApplicationType<P>
{
public MutableApplicationType<P> toMutable();

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

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


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

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


/**
* 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,43 @@
package org.jboss.shrinkwrap.descriptor.api.application5;

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

/**
* This interface defines the contract for the <code> moduleType </code> xsd type.
*/
public interface ModuleType<P> extends Child<P>
{
public MutableModuleType<P> toMutable();

/**
* Returns the <code>connector</code> element
* @return the node defined for the element <code>connector</code>
*/
public String getConnector();


/**
* Returns the <code>ejb</code> element
* @return the node defined for the element <code>ejb</code>
*/
public String getEjb();

/**
* Returns the <code>java</code> element
* @return the node defined for the element <code>java</code>
*/
public String getJava();

/**
* Returns the <code>web</code> element.
* @return the existing instance of <code>WebType<ModuleTypeBase<RETURNTYPE, P>></code>, or null if not found
*/
public WebType<ModuleType<P>> getWeb();

/**
* Returns the <code>alt-dd</code> element
* @return the node defined for the element <code>alt-dd</code>
*/
public String getAltDd();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* 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.application5;

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


/**
* Mutable view of a web application deployment descriptor (ie. web.xml).
*/
public interface MutableApplicationDescriptor extends Descriptor, MutableApplicationType<MutableApplicationDescriptor> {

}
Loading