public abstract class Resource extends Component
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
abstract void |
assign(MeasuredValue mv)
assign this resource to a measured value column or row
|
boolean |
equals(Object obj) |
abstract Resource |
forThis(Cell measuredValuePosition)
returns the corresponding resource for a measured value cell
|
String |
getConcatString() |
abstract List<Resource> |
getList()
get all resources of this type in the model store
|
MissingComponentPanel |
getMissingComponentPanel(Combination c)
returns a panel to complete the component
in case it is missing
|
String |
getName() |
abstract DefaultComboBoxModel<String> |
getNames()
get names of the resource stored in the properties file
|
String |
getNameString()
Returns the name or alternatively the URI, when
the name is null
|
abstract Resource |
getNextResourceType()
needed for iterating within one step
|
TableElement[] |
getRelatedCols() |
TableElement |
getTableElement() |
abstract String |
getTypeName() |
URI |
getURI() |
String |
getUriPrefix() |
abstract DefaultComboBoxModel<String> |
getURIs()
get URIs of the resource stored in the properties file
|
String |
getURIString()
Returns the URI or alternatively the name, when
the URI is null
|
String |
getXMLId() |
int |
hashCode() |
abstract boolean |
isAssigned(MeasuredValue mv)
indicates if the measured value is assigned to a resource of this type
|
abstract boolean |
isAssignedTo(MeasuredValue mv)
indicates if the measured value is assigned to this resource
|
boolean |
isGenerated()
If
true this Resource is generated from other elements
contained in the data file. |
boolean |
isUseNameAfterPrefixAsURI() |
void |
setConcatString(String concatString) |
void |
setGenerated(boolean generated) |
void |
setName(String name) |
void |
setRelatedCols(TableElement[] relatedCols) |
void |
setTableElement(TableElement tableElement) |
void |
setURI(URI uri) |
void |
setUriPrefix(String uriPrefix) |
void |
setUseNameAfterPrefixAsURI(boolean useNameAfterPrefixAsURI) |
String |
toString() |
abstract void |
unassign(MeasuredValue mv)
unassign this resource from a measured value column or row
|
abstract String |
XML_PREFIX()
XML prefix for resources.
|
public void setName(String name)
public String getName()
public void setURI(URI uri)
public URI getURI()
public abstract String XML_PREFIX()
public abstract String getTypeName()
public String getNameString()
public String getURIString()
public void setTableElement(TableElement tableElement)
public TableElement getTableElement()
public abstract void assign(MeasuredValue mv)
public abstract boolean isAssigned(MeasuredValue mv)
public abstract boolean isAssignedTo(MeasuredValue mv)
public abstract void unassign(MeasuredValue mv)
public abstract DefaultComboBoxModel<String> getNames()
public abstract DefaultComboBoxModel<String> getURIs()
public abstract Resource getNextResourceType()
public MissingComponentPanel getMissingComponentPanel(Combination c)
Component
getMissingComponentPanel
in class Component
public abstract Resource forThis(Cell measuredValuePosition)
public String getXMLId()
XML_PREFIX()
+ Resource#hashcode()
public String getUriPrefix()
public void setUriPrefix(String uriPrefix)
uriPrefix
- the uriPrefix to setpublic TableElement[] getRelatedCols()
public void setRelatedCols(TableElement[] relatedCols)
relatedCols
- the relatedCols to setpublic String getConcatString()
public void setConcatString(String concatString)
concatString
- the concatString to setpublic boolean isUseNameAfterPrefixAsURI()
public void setUseNameAfterPrefixAsURI(boolean useNameAfterPrefixAsURI)
useNameAfterPrefixAsURI
- the useNameAfterPrefixAsURI to setpublic boolean isGenerated()
true
this Resource is generated from other elements
contained in the data file.public void setGenerated(boolean generated)
generated
- the generated to setCopyright © 2011–2019 52°North. All rights reserved.