Added NAME to base is-model entities an relations
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/private/luca.frosini/information-system-model@130198 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8cbb5b793a
commit
34d394da08
|
@ -6,7 +6,9 @@ import org.gcube.informationsystem.model.annotations.ISProperty;
|
|||
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
||||
*/
|
||||
public interface AccessPolicy extends Embedded {
|
||||
|
||||
|
||||
public static final String NAME = AccessPolicy.class.getSimpleName();
|
||||
|
||||
@ISProperty
|
||||
public ValueSchema getPolicy();
|
||||
|
||||
|
|
|
@ -8,5 +8,7 @@ package org.gcube.informationsystem.model.embedded;
|
|||
*
|
||||
*/
|
||||
public interface Embedded {
|
||||
|
||||
|
||||
public static final String NAME = Embedded.class.getSimpleName();
|
||||
|
||||
}
|
||||
|
|
|
@ -13,6 +13,8 @@ import org.gcube.informationsystem.model.annotations.ISProperty;
|
|||
*/
|
||||
public interface Header extends Embedded {
|
||||
|
||||
public static final String NAME = Header.class.getSimpleName();
|
||||
|
||||
/**
|
||||
* Used to set Creator when the user is not known
|
||||
*/
|
||||
|
|
|
@ -6,6 +6,8 @@ import org.gcube.informationsystem.model.annotations.ISProperty;
|
|||
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
||||
*/
|
||||
public interface RelationProperty extends Embedded {
|
||||
|
||||
public static final String NAME = RelationProperty.class.getSimpleName();
|
||||
|
||||
/**
|
||||
* @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/
|
||||
|
|
|
@ -13,7 +13,9 @@ import org.gcube.informationsystem.model.annotations.ISProperty;
|
|||
* from a URI.
|
||||
*/
|
||||
public interface ValueSchema extends Embedded {
|
||||
|
||||
|
||||
public static final String NAME = ValueSchema.class.getSimpleName();
|
||||
|
||||
@ISProperty
|
||||
public String getValue();
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ import org.gcube.informationsystem.model.annotations.ISProperty;
|
|||
*/
|
||||
public interface Context extends Entity {
|
||||
|
||||
public static final String NAME = Context.class.getSimpleName();
|
||||
|
||||
public static final String NAME_PROPERTY = "name";
|
||||
|
||||
@ISProperty(name=NAME_PROPERTY, mandatory=true, nullable=false)
|
||||
|
|
|
@ -14,6 +14,8 @@ import org.gcube.informationsystem.model.embedded.RelationProperty;
|
|||
@Abstract
|
||||
public interface Resource extends Entity {
|
||||
|
||||
public static final String NAME = Resource.class.getSimpleName();
|
||||
|
||||
public void addFacet(Facet facet);
|
||||
|
||||
public void addFacet(Facet facet, RelationProperty relationProperty);
|
||||
|
|
|
@ -12,4 +12,6 @@ import org.gcube.informationsystem.model.entity.Resource;
|
|||
public interface ConsistOf<Out extends Resource, In extends Facet>
|
||||
extends Relation<Out, In> {
|
||||
|
||||
public static final String NAME = ConsistOf.class.getSimpleName();
|
||||
|
||||
}
|
||||
|
|
|
@ -11,4 +11,6 @@ import org.gcube.informationsystem.model.entity.Context;
|
|||
public interface ParentOf<Out extends Context, In extends Context>
|
||||
extends Relation<Out, In> {
|
||||
|
||||
public static final String NAME = ParentOf.class.getSimpleName();
|
||||
|
||||
}
|
||||
|
|
|
@ -14,4 +14,6 @@ import org.gcube.informationsystem.model.entity.Resource;
|
|||
public interface RelatedTo<Out extends Resource, In extends Resource>
|
||||
extends Relation<Out, In> {
|
||||
|
||||
public static final String NAME = RelatedTo.class.getSimpleName();
|
||||
|
||||
}
|
||||
|
|
|
@ -15,7 +15,6 @@ public interface Relation<Out extends Entity, In extends Entity> {
|
|||
|
||||
public static final String NAME = Relation.class.getSimpleName();
|
||||
|
||||
|
||||
public static final String RELATION_PROPERTY = "relationProperty";
|
||||
|
||||
public static final String HEADER_PROPERTY = Entity.HEADER_PROPERTY;
|
||||
|
|
Loading…
Reference in New Issue