public class DefaultScopeDescription extends ISOMetadata implements ScopeDescription
ScopeDescription
as an union (in the C/C++ sense):
only one of the properties in this class can be set to a non-empty value.
Setting any property to a non-empty value discard all the other ones.
XML
instead.Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultScopeDescription()
Creates an initially empty scope description.
|
DefaultScopeDescription(ScopeDescription object)
Constructs a new instance initialized with the values from the specified metadata object.
|
Modifier and Type | Method and Description |
---|---|
static DefaultScopeDescription |
castOrCopy(ScopeDescription object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Set<AttributeType> |
getAttributeInstances()
Returns the attribute instances to which the information applies.
|
Set<AttributeType> |
getAttributes()
Returns the attribute types to which the information applies.
|
String |
getDataset()
Returns the dataset to which the information applies.
|
Set<FeatureType> |
getFeatureInstances()
Returns the feature instances to which the information applies.
|
Set<FeatureType> |
getFeatures()
Returns the feature types to which the information applies.
|
String |
getOther()
Returns the class of information that does not fall into the other categories to which the information applies.
|
void |
setAttributeInstances(Set<? extends AttributeType> newValues)
Sets the attribute instances to which the information applies.
|
void |
setAttributes(Set<? extends AttributeType> newValues)
Sets the attribute types to which the information applies.
|
void |
setDataset(String newValue)
Sets the dataset to which the information applies.
|
void |
setFeatureInstances(Set<? extends FeatureType> newValues)
Sets the feature instances to which the information applies.
|
void |
setFeatures(Set<? extends FeatureType> newValues)
Sets the feature types to which the information applies.
|
void |
setOther(String newValue)
Sets the class of information that does not fall into the other categories to
which the information applies.
|
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultScopeDescription()
public DefaultScopeDescription(ScopeDescription object)
If the given object contains more than one value, then the first non-null element in the following list has precedence (from wider scope to smaller scope): dataset, features, attributes, feature instances, attribute instances and other.
object
- The metadata to copy values from, or null
if none.castOrCopy(ScopeDescription)
public static DefaultScopeDescription castOrCopy(ScopeDescription object)
null
, then this method returns null
.DefaultScopeDescription
, then it is returned unchanged.DefaultScopeDescription
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public String getDataset()
ScopeCode.DATASET
level with a
“Administrative area A, B & C” description.
getDataset
in interface ScopeDescription
null
.public void setDataset(String newValue)
newValue
is non-null, then this method automatically
discards all other properties.newValue
- The new dataset.public Set<FeatureType> getFeatures()
ScopeCode.FEATURE_TYPE
level with a
“Administrative area A — Road network” description.
Set<CharSequence>
for ISO 19115:2014 conformance.
See GEO-238 for more information.getFeatures
in interface ScopeDescription
public void setFeatures(Set<? extends FeatureType> newValues)
newValue
is non-empty, then this method automatically
discards all other properties.
Set<CharSequence>
for ISO 19115:2014 conformance.
See GEO-238 for more information.newValues
- The new feature types.public Set<AttributeType> getAttributes()
ScopeCode.ATTRIBUTE_TYPE
level with a
“Administrative area A — Overhead clearance” description.
Set<CharSequence>
for ISO 19115:2014 conformance.
See GEO-238 for more information.getAttributes
in interface ScopeDescription
public void setAttributes(Set<? extends AttributeType> newValues)
newValue
is non-empty, then this method automatically
discards all other properties.
Set<CharSequence>
for ISO 19115:2014 conformance.
See GEO-238 for more information.newValues
- The new attribute types.public Set<FeatureType> getFeatureInstances()
ScopeCode.FEATURE
level with a
“Administrative area A — New bridge” description.
Set<CharSequence>
for ISO 19115:2014 conformance.
See GEO-238 for more information.getFeatureInstances
in interface ScopeDescription
public void setFeatureInstances(Set<? extends FeatureType> newValues)
newValue
is non-empty, then this method automatically
discards all other properties.
Set<CharSequence>
for ISO 19115:2014 conformance.
See GEO-238 for more information.newValues
- The new feature instances.public Set<AttributeType> getAttributeInstances()
ScopeCode.ATTRIBUTE
level with a
“Administrative area A — New bridge — Overhead clearance” description.
Set<CharSequence>
for ISO 19115:2014 conformance.
See GEO-238 for more information.getAttributeInstances
in interface ScopeDescription
public void setAttributeInstances(Set<? extends AttributeType> newValues)
newValue
is non-empty, then this method automatically
discards all other properties.
Set<CharSequence>
for ISO 19115:2014 conformance.
See GEO-238 for more information.newValues
- The new attribute instances.public String getOther()
InternationalString
for ISO 19115:2014 conformance.
See GEO-221 for more information.getOther
in interface ScopeDescription
null
.public void setOther(String newValue)
newValue
is non-null, then this method automatically
discards all other properties.
InternationalString
for ISO 19115:2014 conformance.
See GEO-221 for more information.newValue
- Other class of information.Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.