public abstract class AbstractGeospatialType<T extends org.apache.olingo.commons.api.edm.geo.Geospatial> extends SingletonPrimitiveType
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.olingo.commons.api.edm.geo.Geospatial.Dimension |
dimension |
protected org.apache.olingo.commons.api.edm.geo.Geospatial.Type |
type |
protected String |
uriPrefix |
protected String |
uriSuffix |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGeospatialType(Class<T> reference,
org.apache.olingo.commons.api.edm.geo.Geospatial.Dimension dimension,
org.apache.olingo.commons.api.edm.geo.Geospatial.Type type) |
| Modifier and Type | Method and Description |
|---|---|
String |
fromUriLiteral(String literal) |
Class<?> |
getDefaultType() |
org.apache.olingo.commons.api.edm.FullQualifiedName |
getFullQualifiedName() |
protected abstract <T> T |
internalValueOfString(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode,
Class<T> returnType) |
protected abstract <T> String |
internalValueToString(T value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
boolean |
isCompatible(org.apache.olingo.commons.api.edm.EdmPrimitiveType primitiveType) |
protected org.apache.olingo.commons.api.edm.geo.GeospatialCollection |
stringToCollection(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected org.apache.olingo.commons.api.edm.geo.LineString |
stringToLineString(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected org.apache.olingo.commons.api.edm.geo.MultiLineString |
stringToMultiLineString(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected org.apache.olingo.commons.api.edm.geo.MultiPoint |
stringToMultiPoint(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected org.apache.olingo.commons.api.edm.geo.MultiPolygon |
stringToMultiPolygon(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected org.apache.olingo.commons.api.edm.geo.Point |
stringToPoint(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected org.apache.olingo.commons.api.edm.geo.Polygon |
stringToPolygon(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
String |
toString() |
protected String |
toString(org.apache.olingo.commons.api.edm.geo.GeospatialCollection collection,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected String |
toString(org.apache.olingo.commons.api.edm.geo.LineString lineString,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected String |
toString(org.apache.olingo.commons.api.edm.geo.MultiLineString multiLineString,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected String |
toString(org.apache.olingo.commons.api.edm.geo.MultiPoint multiPoint,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected String |
toString(org.apache.olingo.commons.api.edm.geo.MultiPolygon multiPolygon,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected String |
toString(org.apache.olingo.commons.api.edm.geo.Point point,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
protected String |
toString(org.apache.olingo.commons.api.edm.geo.Polygon polygon,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
String |
toUriLiteral(String literal) |
boolean |
validate(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
<T> T |
valueOfString(String value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode,
Class<T> returnType) |
String |
valueToString(Object value,
Boolean isNullable,
Integer maxLength,
Integer precision,
Integer scale,
Boolean isUnicode) |
equals, getKind, getName, getNamespace, hashCodeprotected final org.apache.olingo.commons.api.edm.geo.Geospatial.Dimension dimension
protected final org.apache.olingo.commons.api.edm.geo.Geospatial.Type type
protected String uriPrefix
protected String uriSuffix
public Class<?> getDefaultType()
protected org.apache.olingo.commons.api.edm.geo.Point stringToPoint(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected org.apache.olingo.commons.api.edm.geo.MultiPoint stringToMultiPoint(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected org.apache.olingo.commons.api.edm.geo.LineString stringToLineString(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected org.apache.olingo.commons.api.edm.geo.MultiLineString stringToMultiLineString(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected org.apache.olingo.commons.api.edm.geo.Polygon stringToPolygon(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected org.apache.olingo.commons.api.edm.geo.MultiPolygon stringToMultiPolygon(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected org.apache.olingo.commons.api.edm.geo.GeospatialCollection stringToCollection(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected String toString(org.apache.olingo.commons.api.edm.geo.Point point, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected String toString(org.apache.olingo.commons.api.edm.geo.MultiPoint multiPoint, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected String toString(org.apache.olingo.commons.api.edm.geo.LineString lineString, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected String toString(org.apache.olingo.commons.api.edm.geo.MultiLineString multiLineString, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected String toString(org.apache.olingo.commons.api.edm.geo.Polygon polygon, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected String toString(org.apache.olingo.commons.api.edm.geo.MultiPolygon multiPolygon, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected String toString(org.apache.olingo.commons.api.edm.geo.GeospatialCollection collection, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionpublic org.apache.olingo.commons.api.edm.FullQualifiedName getFullQualifiedName()
getFullQualifiedName in interface org.apache.olingo.commons.api.edm.EdmTypepublic boolean isCompatible(org.apache.olingo.commons.api.edm.EdmPrimitiveType primitiveType)
isCompatible in interface org.apache.olingo.commons.api.edm.EdmPrimitiveTypepublic boolean validate(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode)
validate in interface org.apache.olingo.commons.api.edm.EdmPrimitiveTypepublic final <T> T valueOfString(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, Class<T> returnType) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
valueOfString in interface org.apache.olingo.commons.api.edm.EdmPrimitiveTypeorg.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected abstract <T> T internalValueOfString(String value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode, Class<T> returnType) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionpublic final String valueToString(Object value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
valueToString in interface org.apache.olingo.commons.api.edm.EdmPrimitiveTypeorg.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionprotected abstract <T> String internalValueToString(T value, Boolean isNullable, Integer maxLength, Integer precision, Integer scale, Boolean isUnicode) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
org.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionpublic String toUriLiteral(String literal)
toUriLiteral in interface org.apache.olingo.commons.api.edm.EdmPrimitiveTypepublic String fromUriLiteral(String literal) throws org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException
fromUriLiteral in interface org.apache.olingo.commons.api.edm.EdmPrimitiveTypeorg.apache.olingo.commons.api.edm.EdmPrimitiveTypeExceptionCopyright © 2013–2015 The Apache Software Foundation. All rights reserved.