org.deegree.gml.dictionary
Class GenericDefinition

java.lang.Object
  extended by org.deegree.gml.dictionary.GenericDefinition
All Implemented Interfaces:
GMLObject, Object, TypedObjectNode, Definition
Direct Known Subclasses:
GenericDictionary

public class GenericDefinition
extends Object
implements Definition

Default implementation of Definition.

Version:
$Revision: 31639 $, $Date: 2011-08-24 21:02:10 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
GenericDefinition(String id, GMLStdProps gmlProps)
          Creates a new GenericDefinition instance.
 
Method Summary
 StringOrRef getDescription()
          Returns the description.
 GMLStdProps getGMLProperties()
          Returns the standard GML properties (e.g.
 String getId()
          Returns the id of the object.
 CodeType[] getNames()
          Returns the names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericDefinition

public GenericDefinition(String id,
                         GMLStdProps gmlProps)
Creates a new GenericDefinition instance.

Parameters:
id - id of the definition, can be null
gmlProps - GML standard properties (which contain description and names), must not be null
Method Detail

getId

public String getId()
Description copied from interface: Object
Returns the id of the object.

Specified by:
getId in interface Object
Returns:
the id of the object, or null if it doesn't have an id

getDescription

public StringOrRef getDescription()
Description copied from interface: Definition
Returns the description.

Specified by:
getDescription in interface Definition
Returns:
the description, can be null

getNames

public CodeType[] getNames()
Description copied from interface: Definition
Returns the names.

Specified by:
getNames in interface Definition
Returns:
the names, can be empty, but never null

getGMLProperties

public GMLStdProps getGMLProperties()
Description copied from interface: GMLObject
Returns the standard GML properties (e.g. gml:name).

Specified by:
getGMLProperties in interface GMLObject
Returns:
the standard GML properties, may be


Copyright © 2011. All Rights Reserved.