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

org.deegree.protocol.wfs.getfeature
Class TypeName

java.lang.Object
  extended by org.deegree.protocol.wfs.getfeature.TypeName

public class TypeName
extends Object

A feature type name with an optional alias, as it may be used in WFS 1.1.0 or 2.0.0 queries.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $

Constructor Summary
TypeName(QName ftName, String alias)
          Creates a new TypeName with optional alias.
 
Method Summary
 String getAlias()
          Returns the alias for the feature type.
 QName getFeatureTypeName()
          Returns the feature type name.
static TypeName[] valuesOf(org.apache.axiom.om.OMElement context, String typeNameStr)
          Extracts an array of TypeNames from the TypeNameList string, whose pattern is ((\w:)?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeName

public TypeName(QName ftName,
                String alias)
Creates a new TypeName with optional alias.

Parameters:
ftName - name of the feature, must not be null
alias - alias for the feature type, may be null
Method Detail

valuesOf

public static TypeName[] valuesOf(org.apache.axiom.om.OMElement context,
                                  String typeNameStr)
Extracts an array of TypeNames from the TypeNameList string, whose pattern is ((\w:)?\w(=\w)?){1,}. Example: typeName="ns1:Inwatera_1m=A, ns2:CoastL_1M=B" where A is an alias for ns1:Inwatera_1m and B is an alias for ns2:CoastL_1M. (taken from http://schemas.opengis.net/wfs/1.1.0/wfs.xsd )

Parameters:
context - the query element in which the TypeNameList attribute is defined, used to resolve the namespaceURIs for the prefixes
typeNameStr - the string that will be parsed
Returns:
an array of TypeName

getFeatureTypeName

public QName getFeatureTypeName()
Returns the feature type name.

Returns:
the feature type name, never null

getAlias

public String getAlias()
Returns the alias for the feature type.

Returns:
the alias for the feature type, or null if it has none

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

]]>