org.deegree.gml.props
Class GMLStdPropsImpl

java.lang.Object
  extended by org.deegree.gml.props.GMLStdPropsImpl
All Implemented Interfaces:
GMLStdProps
Direct Known Subclasses:
StandardGMLFeatureProps

public class GMLStdPropsImpl
extends Object
implements GMLStdProps

Version-agnostic representation of the standard properties that any GMLObject allows for.

The following properties exist (description taken from GML 3.1.1/3.2.1 schemas):

Property name GML 2 GML 3.0 GML 3.1 GML 3.2
metaDataProperty n/a MetaDataPropertyType (0...*) MetaDataPropertyType (0...*) MetaDataPropertyType (0...*)
description string (0...1) StringOrRefType (0...1) StringOrRefType (0...1) StringOrRefType (0...1)
descriptionReference n/a n/a n/a ReferenceType (0...1)
identifier n/a n/a n/a CodeWithAuthorityType (0...1)
name string (0...1) CodeType (0...*) CodeType (0...*) CodeType (0...*)

Version:
$Revision: 31640 $, $Date: 2011-08-24 21:03:12 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
Feature, Geometry

Field Summary
protected  StringOrRef description
           
protected  CodeType identifier
           
protected  TypedObjectNode[] metadata
           
protected  CodeType[] names
           
static SimplePropertyType PT_DESCRIPTION_GML2
          GML 2 standard property type 'gml:description'
static StringOrRefPropertyType PT_DESCRIPTION_GML31
          GML 3.0/3.1 standard property type 'gml:description'
static StringOrRefPropertyType PT_DESCRIPTION_GML32
          GML 3.2 standard property type 'gml:description'
static StringOrRefPropertyType PT_DESCRIPTION_REFERENCE_GML32
          GML 3.2 standard property type 'gml:descriptionReference'
static CodePropertyType PT_IDENTIFIER_GML32
          GML 3.2 standard property type 'gml:identifier'
static CustomPropertyType PT_META_DATA_PROPERTY_GML31
          GML 3.0/3.1 standard property type 'gml:metaDataProperty'
static CustomPropertyType PT_META_DATA_PROPERTY_GML32
          GML 3.2 standard property type 'gml:metaDataProperty'
static SimplePropertyType PT_NAME_GML2
          GML 2 standard property type 'gml:name'
static CodePropertyType PT_NAME_GML31
          GML 3.0/3.1 standard property type 'gml:name'
static CodePropertyType PT_NAME_GML32
          GML 3.2 standard property type 'gml:name'
 
Constructor Summary
GMLStdPropsImpl(TypedObjectNode[] metadata, StringOrRef description, CodeType identifier, CodeType[] names)
          Creates a new GMLStdPropsImpl instance.
 
Method Summary
 StringOrRef getDescription()
          Returns the description.
 CodeType getIdentifier()
          Returns the identifier.
 TypedObjectNode[] getMetadata()
          Returns the metadata values.
 CodeType[] getNames()
          Returns the names.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PT_DESCRIPTION_GML2

public static final SimplePropertyType PT_DESCRIPTION_GML2
GML 2 standard property type 'gml:description'


PT_NAME_GML2

public static final SimplePropertyType PT_NAME_GML2
GML 2 standard property type 'gml:name'


PT_META_DATA_PROPERTY_GML31

public static final CustomPropertyType PT_META_DATA_PROPERTY_GML31
GML 3.0/3.1 standard property type 'gml:metaDataProperty'


PT_DESCRIPTION_GML31

public static final StringOrRefPropertyType PT_DESCRIPTION_GML31
GML 3.0/3.1 standard property type 'gml:description'


PT_NAME_GML31

public static final CodePropertyType PT_NAME_GML31
GML 3.0/3.1 standard property type 'gml:name'


PT_META_DATA_PROPERTY_GML32

public static final CustomPropertyType PT_META_DATA_PROPERTY_GML32
GML 3.2 standard property type 'gml:metaDataProperty'


PT_DESCRIPTION_GML32

public static final StringOrRefPropertyType PT_DESCRIPTION_GML32
GML 3.2 standard property type 'gml:description'


PT_DESCRIPTION_REFERENCE_GML32

public static final StringOrRefPropertyType PT_DESCRIPTION_REFERENCE_GML32
GML 3.2 standard property type 'gml:descriptionReference'


PT_IDENTIFIER_GML32

public static final CodePropertyType PT_IDENTIFIER_GML32
GML 3.2 standard property type 'gml:identifier'


PT_NAME_GML32

public static final CodePropertyType PT_NAME_GML32
GML 3.2 standard property type 'gml:name'


metadata

protected TypedObjectNode[] metadata

description

protected StringOrRef description

identifier

protected CodeType identifier

names

protected CodeType[] names
Constructor Detail

GMLStdPropsImpl

public GMLStdPropsImpl(TypedObjectNode[] metadata,
                       StringOrRef description,
                       CodeType identifier,
                       CodeType[] names)
Creates a new GMLStdPropsImpl instance.

Parameters:
metadata - metadata values, may be null
description - description, may be null
identifier - identifier, may be null
names - names, may be null
Method Detail

getMetadata

public TypedObjectNode[] getMetadata()
Returns the metadata values.

Specified by:
getMetadata in interface GMLStdProps
Returns:
the metadata values, may be empty, but never null

getDescription

public StringOrRef getDescription()
Returns the description.

Specified by:
getDescription in interface GMLStdProps
Returns:
the description, may be null

getIdentifier

public CodeType getIdentifier()
Returns the identifier.

Specified by:
getIdentifier in interface GMLStdProps
Returns:
the identifier, may be null

getNames

public CodeType[] getNames()
Returns the names.

Specified by:
getNames in interface GMLStdProps
Returns:
the names, may be empty, but never null

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.