public class OgcPropertyImpl<ValueType> extends java.lang.Object implements OgcProperty<ValueType>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
arcRole |
protected java.lang.String |
href |
protected HrefResolver |
hrefResolver |
protected java.lang.String |
name |
protected java.lang.String |
nilReason |
protected java.lang.String |
role |
protected java.lang.String |
title |
protected ValueType |
value |
Constructor and Description |
---|
OgcPropertyImpl() |
OgcPropertyImpl(java.lang.String name,
ValueType value) |
OgcPropertyImpl(ValueType value) |
Modifier and Type | Method and Description |
---|---|
OgcPropertyImpl<ValueType> |
copy() |
protected void |
copyTo(OgcPropertyImpl<ValueType> other) |
java.lang.String |
getArcRole() |
java.lang.String |
getHref() |
java.lang.String |
getName() |
java.lang.String |
getNilReason() |
java.lang.String |
getRole() |
ValueType |
getTarget() |
java.lang.String |
getTitle() |
ValueType |
getValue() |
boolean |
hasHref() |
boolean |
hasValue() |
boolean |
resolveHref()
Fetches remote value from xlink href
This method does nothing if property value is not null
|
void |
setArcRole(java.lang.String role) |
void |
setHref(java.lang.String href) |
void |
setHrefResolver(HrefResolver hrefResolver)
Assigns an instance of HrefResolver that is responsible for connecting
to the href URL, fetch the data and parse it with the appropriate parser
|
void |
setName(java.lang.String name) |
void |
setNilReason(java.lang.String nilReason) |
void |
setRole(java.lang.String role) |
void |
setTitle(java.lang.String title) |
void |
setValue(ValueType value) |
protected ValueType value
protected java.lang.String name
protected java.lang.String title
protected java.lang.String href
protected java.lang.String role
protected java.lang.String arcRole
protected java.lang.String nilReason
protected HrefResolver hrefResolver
public OgcPropertyImpl()
public OgcPropertyImpl(ValueType value)
public OgcPropertyImpl(java.lang.String name, ValueType value)
public OgcPropertyImpl<ValueType> copy()
copy
in interface OgcProperty<ValueType>
protected void copyTo(OgcPropertyImpl<ValueType> other)
public java.lang.String getName()
getName
in interface OgcProperty<ValueType>
public void setName(java.lang.String name)
setName
in interface OgcProperty<ValueType>
public java.lang.String getTitle()
getTitle
in interface OgcProperty<ValueType>
public void setTitle(java.lang.String title)
setTitle
in interface OgcProperty<ValueType>
public java.lang.String getHref()
getHref
in interface org.vast.ogc.xlink.IXlinkReference<ValueType>
public void setHref(java.lang.String href)
setHref
in interface org.vast.ogc.xlink.IXlinkReference<ValueType>
public boolean hasHref()
hasHref
in interface OgcProperty<ValueType>
public java.lang.String getRole()
getRole
in interface org.vast.ogc.xlink.IXlinkReference<ValueType>
public void setRole(java.lang.String role)
setRole
in interface org.vast.ogc.xlink.IXlinkReference<ValueType>
public java.lang.String getArcRole()
getArcRole
in interface org.vast.ogc.xlink.IXlinkReference<ValueType>
public void setArcRole(java.lang.String role)
setArcRole
in interface org.vast.ogc.xlink.IXlinkReference<ValueType>
public java.lang.String getNilReason()
getNilReason
in interface OgcProperty<ValueType>
public void setNilReason(java.lang.String nilReason)
setNilReason
in interface OgcProperty<ValueType>
public ValueType getValue()
getValue
in interface OgcProperty<ValueType>
public boolean hasValue()
hasValue
in interface OgcProperty<ValueType>
public void setValue(ValueType value)
setValue
in interface OgcProperty<ValueType>
public void setHrefResolver(HrefResolver hrefResolver)
OgcProperty
setHrefResolver
in interface OgcProperty<ValueType>
public boolean resolveHref() throws java.io.IOException
OgcProperty
resolveHref
in interface OgcProperty<ValueType>
java.io.IOException
- if href URL cannot be reached