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.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 attributes 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 features 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 attributes 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 features 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: attributes, features, feature instances, attribute instances, dataset 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 Set<AttributeType> getAttributes()
getAttributes
in interface ScopeDescription
public void setAttributes(Set<? extends AttributeType> newValues)
newValue
is non-empty, then this method automatically
discards all other properties.newValues
- The new attributes.public Set<FeatureType> getFeatures()
getFeatures
in interface ScopeDescription
public void setFeatures(Set<? extends FeatureType> newValues)
newValue
is non-empty, then this method automatically
discards all other properties.newValues
- The new features.public Set<FeatureType> getFeatureInstances()
getFeatureInstances
in interface ScopeDescription
public void setFeatureInstances(Set<? extends FeatureType> newValues)
newValue
is non-empty, then this method automatically
discards all other properties.newValues
- The new feature instances.public Set<AttributeType> getAttributeInstances()
getAttributeInstances
in interface ScopeDescription
public void setAttributeInstances(Set<? extends AttributeType> newValues)
newValue
is non-empty, then this method automatically
discards all other properties.newValues
- The new attribute instances.public String getDataset()
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 String getOther()
getOther
in interface ScopeDescription
null
.public void setOther(String newValue)
newValue
is non-null, then this method automatically
discards all other properties.newValue
- Other class of information.Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.