Class ValueSchemaImpl
- java.lang.Object
-
- org.gcube.informationsystem.base.impl.ElementImpl
-
- org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
-
- org.gcube.informationsystem.model.impl.properties.PropertyImpl
-
- org.gcube.resourcemanagement.model.impl.properties.GCubePropertyImpl
-
- org.gcube.resourcemanagement.model.impl.properties.ValueSchemaImpl
-
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.properties.PropertyElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.model.reference.properties.Property,GCubeProperty,TypedProperty<URI,String>,ValidatedTypedProperty<URI,String>,ValueSchema
public class ValueSchemaImpl extends GCubePropertyImpl implements ValueSchema
A property with anURIas value- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gcube.resourcemanagement.model.reference.properties.ValueSchema
ValueSchema.SchemaValidator
-
-
Field Summary
Fields Modifier and Type Field Description protected URIschemaprotected Stringvalue-
Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedtype, supertypes
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.GCubeProperty
NAME
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.properties.Property
NAME
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.ValueSchema
NAME
-
-
Constructor Summary
Constructors Constructor Description ValueSchemaImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetSchema()An URI containing a schema used to validate/interpret the content of the value.StringgetValue()The value which schema is available at the URI provided in the schema property.voidsetSchema(URI schema)voidsetValue(String value)-
Methods inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedtype, getSupertypes, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Methods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from interface org.gcube.resourcemanagement.model.reference.properties.ValueSchema
validate
-
-
-
-
Method Detail
-
getValue
public String getValue()
Description copied from interface:ValueSchemaThe value which schema is available at the URI provided in the schema property.- Specified by:
getValuein interfaceTypedProperty<URI,String>- Specified by:
getValuein interfaceValueSchema
-
setValue
public void setValue(String value)
- Specified by:
setValuein interfaceTypedProperty<URI,String>- Specified by:
setValuein interfaceValueSchema
-
getSchema
public URI getSchema()
Description copied from interface:ValueSchemaAn URI containing a schema used to validate/interpret the content of the value. It is only an informative field. The validation is charge of the client.- Specified by:
getSchemain interfaceTypedProperty<URI,String>- Specified by:
getSchemain interfaceValueSchema
-
setSchema
public void setSchema(URI schema)
- Specified by:
setSchemain interfaceTypedProperty<URI,String>- Specified by:
setSchemain interfaceValueSchema
-
-