public class VisualShape extends java.lang.Object
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <shape> <shapeType>RECTANGLE</shapeType> <value>1194345443,639986100,923810056,69369709</value> </shape>
Modifier and Type | Class and Description |
---|---|
static interface |
VisualShape.VisualShapeSolrCapable
Classes implementing this interface will contain functionality for handling an VisualShape.
|
static class |
VisualShape.VisualShapeType
Type of the shape object.
|
Constructor and Description |
---|
VisualShape(VisualShape.VisualShapeType type,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static java.lang.String |
getValue(VisualShape shape) |
VisualShape.VisualShapeType |
getVisualShapeType() |
static java.lang.Integer |
getVisualShapeTypeId(VisualShape shape) |
static boolean |
isValid(VisualShape shape) |
void |
setValue(java.lang.String value) |
static VisualShape |
setValue(VisualShape shape,
java.lang.String value)
Sets the given value to the given Shape.
|
void |
setVisualShapeType(VisualShape.VisualShapeType type) |
static VisualShape |
setVisualShapeTypeId(VisualShape shape,
java.lang.Integer value)
Sets the given value to the given Shape.
|
public VisualShape(VisualShape.VisualShapeType type, java.lang.String value)
type
- value
- public java.lang.String getValue()
setValue(String)
,
VisualShape.VisualShapeType
public void setValue(java.lang.String value)
value
- getValue()
public VisualShape.VisualShapeType getVisualShapeType()
setVisualShapeType(service.tut.pori.contentanalysis.VisualShape.VisualShapeType)
public void setVisualShapeType(VisualShape.VisualShapeType type)
type
- getVisualShapeType()
public static boolean isValid(VisualShape shape)
shape
- can be nullpublic static java.lang.String getValue(VisualShape shape)
shape
- public static VisualShape setValue(VisualShape shape, java.lang.String value)
shape
- can be nullvalue
- public static java.lang.Integer getVisualShapeTypeId(VisualShape shape)
shape
- public static VisualShape setVisualShapeTypeId(VisualShape shape, java.lang.Integer value) throws java.lang.IllegalArgumentException
shape
- can be nullvalue
- java.lang.IllegalArgumentException
- on bad valueCopyright © 2015 Tampere University of Technology, Pori Department.