com.softwareag.tamino.db.api.namespace
Class TNamespaceObject

java.lang.Object
  extended by com.softwareag.tamino.db.api.namespace.TNamespaceObject
Direct Known Subclasses:
TInoNamespace.TInoObject, TSDNamespace.TSDObject, TXQLNamespace.TXQLObject, TXQNamespace.TXQObject, TXSNamespace.TXSObject

public abstract class TNamespaceObject
extends java.lang.Object

TNamespaceObject is an abstract class for Tamino namespace specific objects. A concrete class is only responsible for implementing the getQualifiedName operation.

Version:
$Revision: 1.6 $
Author:
Marcus Schreyer

Field Summary
static java.lang.String ATTRIBUTE_TYPE
          Constant needed to classify namespace object as an attribute object.
static java.lang.String ELEMENT_TYPE
          Constant needed to classify namespace object as an element object.
 
Constructor Summary
TNamespaceObject(java.lang.String name, java.lang.String type)
          Public Constructor.
 
Method Summary
 java.lang.String getName()
          Gets the name.
abstract  java.lang.String getQualifiedName()
          Gets the fully qualified name, e.g.
 java.lang.String getType()
          Gets the type.
 boolean isAttribute()
          Indicator for attribute type.
 boolean isElement()
          Indicator for element type.
 java.lang.String toString()
          Returns string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELEMENT_TYPE

public static final java.lang.String ELEMENT_TYPE
Constant needed to classify namespace object as an element object.

See Also:
Constant Field Values

ATTRIBUTE_TYPE

public static final java.lang.String ATTRIBUTE_TYPE
Constant needed to classify namespace object as an attribute object.

See Also:
Constant Field Values
Constructor Detail

TNamespaceObject

public TNamespaceObject(java.lang.String name,
                        java.lang.String type)
Public Constructor. Initializes object with its name and type.

Method Detail

getType

public java.lang.String getType()
Gets the type.


getName

public java.lang.String getName()
Gets the name.


getQualifiedName

public abstract java.lang.String getQualifiedName()
Gets the fully qualified name, e.g. ino:collection.


isElement

public boolean isElement()
Indicator for element type.


isAttribute

public boolean isAttribute()
Indicator for attribute type.


toString

public java.lang.String toString()
Returns string representation. Is the same as getQualifiedName.

Overrides:
toString in class java.lang.Object


Copyright (c) 2013 Software AG. All Rights Reserved.