deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.gml.props
Class GMLStdProps

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

public class GMLStdProps
extends Object

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: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $
See Also:
Feature, Geometry

Field Summary
protected  StringOrRef description
           
protected  CodeType identifier
           
protected  Object[] metadata
           
protected  CodeType[] names
           
static SimplePropertyType<String> 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<String> 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
GMLStdProps(Object[] metadata, StringOrRef description, CodeType identifier, CodeType[] names)
          Creates a new GMLStdProps instance.
 
Method Summary
 StringOrRef getDescription()
          Returns the description.
 CodeType getIdentifier()
          Returns the identifier.
 Object[] 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<String> PT_DESCRIPTION_GML2
GML 2 standard property type 'gml:description'


PT_NAME_GML2

public static final SimplePropertyType<String> 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 Object[] metadata

description

protected StringOrRef description

identifier

protected CodeType identifier

names

protected CodeType[] names
Constructor Detail

GMLStdProps

public GMLStdProps(Object[] metadata,
                   StringOrRef description,
                   CodeType identifier,
                   CodeType[] names)
Creates a new GMLStdProps 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 Object[] getMetadata()
Returns the metadata values.

Returns:
the metadata values, may be empty, but never null

getDescription

public StringOrRef getDescription()
Returns the description.

Returns:
the description, may be null

getIdentifier

public CodeType getIdentifier()
Returns the identifier.

Returns:
the identifier, may be null

getNames

public CodeType[] getNames()
Returns the names.

Returns:
the names, may be empty, but never null

toString

public String toString()
Overrides:
toString in class Object

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>