[New] added a new StrolchRootElement interface for Resource and Order

This commit is contained in:
Robert von Burg 2014-02-24 21:48:53 +01:00
parent 205c4b967d
commit 7147bc1570
3 changed files with 30 additions and 4 deletions

View File

@ -33,10 +33,9 @@ import ch.eitchnet.utils.iso8601.ISO8601FormatFactory;
* In this sense, orders do not need to be verified, so all verifier chracteristics are disabled and the
* getVerifier()-method will return the null reference
*
* @author eitch
*
* @author Robert von Burg <eitch@eitchnet.ch>
*/
public class Order extends GroupedParameterizedElement {
public class Order extends GroupedParameterizedElement implements StrolchRootElement {
private static final long serialVersionUID = 0L;

View File

@ -23,7 +23,7 @@ import org.w3c.dom.Element;
/**
* @author Robert von Burg <eitch@eitchnet.ch>
*/
public class Resource extends GroupedParameterizedElement {
public class Resource extends GroupedParameterizedElement implements StrolchRootElement {
private static final long serialVersionUID = 0L;

View File

@ -0,0 +1,27 @@
/*
* Copyright 2013 Robert von Burg <eitch@eitchnet.ch>
*
* 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 li.strolch.model;
/**
* Root element for all top level {@link StrolchElement}. These are elements which have no parent, e.g. {@link Resource
* Resources} and {@link Order Orders}
*
* @author Robert von Burg <eitch@eitchnet.ch>
*/
public interface StrolchRootElement extends StrolchElement {
// marker interface
}