org.deegree.services.wps.provider.sextante
Class Field

java.lang.Object
  extended by org.deegree.services.wps.provider.sextante.Field

public class Field
extends Object

Defines a column of a attribute table.
'Name' is the column name and 'Type' the data type.

Version:
$Revision: $, $Date: $
Author:
Jens Pabel, last edited by: $Author: pabel $

Constructor Summary
Field(QName name, Class<?> type)
          Creates a Field by QName und type.
Field(String name, Class<?> type)
          Creates a Field by name und type.
 
Method Summary
static Field[] createFieldArray(String[] names, Class<?>[] types)
          Creates an array of Fields.
 String getName()
          Returns the field name.
 String getNamespaceURI()
          Returns namespace.
 String getNameWithNamespaceAndPrefix()
          Returns the field name with namespace and prefix.
 String getPrefix()
          Returns prefix of namespace.
 QName getQName()
          Returns the field name as a QName.
 Class<?> getType()
          Returns the data type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(String name,
             Class<?> type)
Creates a Field by name und type.

Parameters:
name - Name
type - Type

Field

public Field(QName name,
             Class<?> type)
Creates a Field by QName und type.

Parameters:
name - QName.
type - Type.
Method Detail

createFieldArray

public static Field[] createFieldArray(String[] names,
                                       Class<?>[] types)
Creates an array of Fields. If the length of names and types are different then this method returns null.

Parameters:
names - Column name.
types - Data type.
Returns:
Array of Fields.

getName

public String getName()
Returns the field name.

Returns:
Field name.

getNameWithNamespaceAndPrefix

public String getNameWithNamespaceAndPrefix()
Returns the field name with namespace and prefix.

Returns:
Name with namespace and prefix like this "name~prefix~namespace". If namespace or prefix is null, it returns only the name.

getQName

public QName getQName()
Returns the field name as a QName.

Returns:
Field name as a QName with namespace URL and prefix.

getPrefix

public String getPrefix()
Returns prefix of namespace.

Returns:
Prefix of namespace.

getNamespaceURI

public String getNamespaceURI()
Returns namespace.

Returns:
namespace.

getType

public Class<?> getType()
Returns the data type.

Returns:
Data type.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.