public final class SRSAttributes extends AbstractAttributeGroup
In DDMS | 2.0 | 3.0 | 3.1 | 4.0.1/4.1 | 5.0 |
Because the GML-Profile defines these attributes locally inside of attribute groups, they are not in any namespace. Some older examples on the DDMS website inaccurately display the attributes with the gml: prefix.
History |
---|
The GML profile was removed in favour of TSPI in DDMS 5.0. However, these SRS attributes continue to appear on TSPI shapes. |
Nested Elements | |||
---|---|---|---|
|
Attributes | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Validation Rules | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
When validating this attribute group, the required/optional nature of the srsName attribute is not checked. Because that limitation depends on the parent element (for example, gml:Point and gml:Polygon require an srsName, but gml:pos does not), the parent element should be responsible for checking. |
Modifier and Type | Class and Description |
---|---|
static class |
SRSAttributes.Builder
Builder for these attributes.
|
Modifier and Type | Field and Description |
---|---|
static String |
NO_NAMESPACE
The namespace of the shared attributes
|
static String |
NO_PREFIX
The prefix of the shared attributes
|
INCOMPATIBLE_VERSION_MESSAGE
Constructor and Description |
---|
SRSAttributes(nu.xom.Element element)
Base constructor
|
SRSAttributes(String srsName,
Integer srsDimension,
List<String> axisLabels,
List<String> uomLabels)
Constructor which builds from raw data.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addTo(nu.xom.Element element)
Convenience method to add these attributes onto an existing XOM Element
|
boolean |
equals(Object obj) |
List<String> |
getAxisLabels()
Accessor for the axisLabels.
|
String |
getAxisLabelsAsXsList()
Accessor for the String representation of the axisLabels
|
String |
getHTMLTextOutput(OutputFormat format,
String prefix)
Outputs to HTML or Text with a prefix at the beginning of each meta tag or line.
|
com.google.gson.JsonObject |
getJSONObject()
Renders this component as a JSON object, which can either be converted to
a JSON string or inserted into the parent JSON object.
|
String |
getName()
Returns a name that describes this attribute group.
|
static SRSAttributes |
getNonNullInstance(SRSAttributes srsAttributes)
Returns a non-null instance of SRS attributes.
|
Integer |
getSrsDimension()
Accessor for the srsDimension.
|
String |
getSrsName()
Accessor for the srsName.
|
List<String> |
getUomLabels()
Accessor for the uomLabels.
|
String |
getUomLabelsAsXsList()
Accessor for the String representation of the uomLabels
|
int |
hashCode() |
boolean |
isEmpty()
Checks if any attributes have been set.
|
protected void |
validate(DDMSVersion version)
Base validation case for attribute groups.
|
addJson, addJson, getNamespace, getValidationWarnings, getWarnings, setNamespace
public static final String NO_PREFIX
public static final String NO_NAMESPACE
public SRSAttributes(nu.xom.Element element) throws InvalidDDMSException
element
- the XOM element which is decorated with these attributes.InvalidDDMSException
public SRSAttributes(String srsName, Integer srsDimension, List<String> axisLabels, List<String> uomLabels) throws InvalidDDMSException
srsName
- the srsNamesrsDimension
- the srsDimensionaxisLabels
- the axis labelsuomLabels
- the labels for UOMInvalidDDMSException
- if any required information is missing or malformedpublic static SRSAttributes getNonNullInstance(SRSAttributes srsAttributes) throws InvalidDDMSException
srsAttributes
- the attributes to return by defaultInvalidDDMSException
- if there are problems creating the empty attributes instanceprotected void addTo(nu.xom.Element element) throws InvalidDDMSException
element
- the element to decorateInvalidDDMSException
- if the DDMS version of the element is differentprotected void validate(DDMSVersion version) throws InvalidDDMSException
AbstractAttributeGroup
validate
in class AbstractAttributeGroup
version
- the DDMS version to validate against. This cannot be stored in the attribute group because some
DDMSVersions have the same attribute XML namespace (e.g. XLink, ISM, NTK, GML after DDMS 2.0).InvalidDDMSException
- if any required information is missing or malformedpublic boolean isEmpty()
AbstractAttributeGroup
isEmpty
in class AbstractAttributeGroup
AbstractAttributeGroup.isEmpty()
public com.google.gson.JsonObject getJSONObject()
AbstractAttributeGroup
I consider this to be an internal method, that unfortunately must be marked as public to allow cross-package access when generating output. Use toJSON() as the formal, public method to generate output.
getJSONObject
in class AbstractAttributeGroup
AbstractAttributeGroup.getJSONObject()
public String getName()
AbstractAttributeGroup
getName
in class AbstractAttributeGroup
AbstractAttributeGroup.getName()
public String getHTMLTextOutput(OutputFormat format, String prefix)
AbstractAttributeGroup
I consider this to be an internal method, that unfortunately must be marked as public to allow cross-package access when generating output. Use toHTML() and toText() as the formal, public methods to generate output.
getHTMLTextOutput
in class AbstractAttributeGroup
format
- the desired format of this outputprefix
- the prefix to addAbstractAttributeGroup.getHTMLTextOutput(OutputFormat, String)
public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getSrsName()
public Integer getSrsDimension()
public List<String> getAxisLabels()
public String getAxisLabelsAsXsList()
public List<String> getUomLabels()
public String getUomLabelsAsXsList()
Copyright 2010 - 2019 by Brian Uri!
Generated on 09/15/2016 12:36 PM
https://ddmsence.urizone.net/