|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.admin.irbootstrapperportlet.gwt.server.types.data.DataType<T>
public abstract class DataType<T extends Resource>
| Field Summary | |
|---|---|
protected String |
typeName
The name of this dataType |
protected Document |
xml
The XML definition of the dataType |
| Method Summary | |
|---|---|
Object |
clone()
|
void |
copyDataFromResource()
Updates all the attributes of this data types with the values of the corresponding attributes defined in the associated resource. |
void |
copyDataToResource()
Updates all the attributes of the associated resource with the values of the corresponding attributes defined in this data type. |
abstract boolean |
doesIdentifyUniqueResource()
Returns true if the currently defined attributes of this DataType are adequate in order to uniquely identify a resource in the infrastructure. |
EvaluationResult |
evaluate(String expression)
Returns the Node object representing a node in the XML definition of this data type. |
List<DataType<T>> |
findMatchesInScope(org.gcube.common.core.scope.GCUBEScope scope)
Returns a list of DataTypeInstances representing all the resources that match the properties defined in this DataType in the given scope |
T |
getAssociatedResource()
|
String |
getAttributeValue(String expression)
Gets the value of an attribute defined in the XML definition of this data type. |
abstract Map<String,String> |
getDataTypeAttrToResourceAttrMappings()
Returns (dataTypeAttrValue, resourceAttrValue) pairs, which describe the mappings between attributes defined in this data types and attributes defined in the wrapped type of resource. |
org.gcube.common.core.scope.GCUBEScope |
getScope()
|
Node |
getTypeDefinition()
Returns the XML definition of this data type |
String |
getTypeName()
|
abstract String |
getUID()
Returns an identifier that uniquely identifies the specific DataType instance. |
abstract String |
getUIDescription()
Returns a string which will be displayed as the description of this DataType in the UI. |
abstract String |
getUIName()
Returns a string which will be displayed as the name of this DataType in the UI. |
abstract Document |
getXMLTypeDefinitionDocument()
Returns a Document object defining the XML structure of this DataType's contents. |
void |
initialize(String typeName)
Initializes this DataType instance |
void |
setAttributeValue(String expression,
String value)
Sets the value of an attribute defined in the XML definition of this data type. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String typeName
protected Document xml
| Method Detail |
|---|
public void initialize(String typeName)
throws Exception
typeName - the name of the data typexml - the XML definition of the data type
Exceptionpublic Node getTypeDefinition()
public org.gcube.common.core.scope.GCUBEScope getScope()
public String getTypeName()
public EvaluationResult evaluate(String expression)
throws Exception
evaluate in interface Evaluableexpression - the expression to evaluate, in "a.b.c..." notation
Exception
public void setAttributeValue(String expression,
String value)
throws Exception
expression - the expression to evaluate, in "a.b.c..." notationvalue - the value to set to the attribute identified by the given expression
Exception
public String getAttributeValue(String expression)
throws Exception
expression - the expression to evaluate, in "a.b.c..." notation
Exception
public List<DataType<T>> findMatchesInScope(org.gcube.common.core.scope.GCUBEScope scope)
throws Exception
scope - the scope to search in
Exceptionpublic T getAssociatedResource()
public void copyDataFromResource()
throws Exception
Exception
public void copyDataToResource()
throws Exception
resource -
Exceptionpublic abstract Map<String,String> getDataTypeAttrToResourceAttrMappings()
public abstract boolean doesIdentifyUniqueResource()
public abstract String getUID()
public abstract String getUIName()
throws Exception
Exception
public abstract String getUIDescription()
throws Exception
Exception
public abstract Document getXMLTypeDefinitionDocument()
throws Exception
Document object defining the XML structure of this DataType's contents.
Exception
public Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||