com.day.durbo
Class DurboInput.Element

java.lang.Object
  extended by com.day.durbo.DurboInput.Element
Direct Known Subclasses:
DurboInput.Node, DurboInput.Property
Enclosing class:
DurboInput

public abstract class DurboInput.Element
extends Object

Inner class that represents one element of the Durbo protocol


Method Summary
abstract  String getString()
          Convenience method
abstract  boolean isNodeEnd()
          Checks if this element is a node end
abstract  boolean isNodeStart()
          Checks if this element is a node start
abstract  boolean isProperty()
          Checks if this element is a property
 String localName()
          returns the local name of this element
 String name()
          Returns the name of this element
 String prefix()
          returns the prefix of this element
abstract  long size()
          Deprecated. use Property#getValues().length() instead.
 String toString()
          Deprecated. use getString() instead.
 String uri()
          returns the namespace uri for this element
abstract  boolean wasBinary()
          Deprecated. use DurboInput.Property.getType() instead.
abstract  boolean wasString()
          Deprecated. use DurboInput.Property.getType() instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

name

public String name()
Returns the name of this element

Returns:
the name of this element

prefix

public String prefix()
returns the prefix of this element

Returns:
the prefix.

uri

public String uri()
returns the namespace uri for this element

Returns:
the namespace uri.

localName

public String localName()
returns the local name of this element

Returns:
the local name.

isProperty

public abstract boolean isProperty()
Checks if this element is a property

Returns:
true if this element is a property; false otherwise

isNodeStart

public abstract boolean isNodeStart()
Checks if this element is a node start

Returns:
true if this element is a node start; false otherwise

isNodeEnd

public abstract boolean isNodeEnd()
Checks if this element is a node end

Returns:
true if this element is a node end; false otherwise

getString

public abstract String getString()
Convenience method

Returns:
the string.

toString

public String toString()
Deprecated. use getString() instead.

Overrides:
toString in class Object
Returns:
the debug representation if this element

wasBinary

public abstract boolean wasBinary()
Deprecated. use DurboInput.Property.getType() instead.

Checks if this elem is a property and has binary content.

Returns:
true if this element has binary content.

wasString

public abstract boolean wasString()
Deprecated. use DurboInput.Property.getType() instead.

Checks if this elem is a property and has string content.

Returns:
true if this element has string content.

size

public abstract long size()
Deprecated. use Property#getValues().length() instead.

Returns the size of the this element if it's a property.

Returns:
the size of the this element if it's a property.


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.