com.day.durbo
Class DurboInput.Property

java.lang.Object
  extended by com.day.durbo.DurboInput.Element
      extended by com.day.durbo.DurboInput.Property
Enclosing class:
DurboInput

public class DurboInput.Property
extends DurboInput.Element


Constructor Summary
DurboInput.Property(String name, int type, boolean multiple, DurboValue[] values)
           
 
Method Summary
 Value[] getJcrValues(ValueFactory factory)
           
 String getString()
          Convenience method
 int getType()
           
 DurboValue[] getValues()
           
 boolean isMultiple()
           
 boolean isNodeEnd()
          Checks if this element is a node end
 boolean isNodeStart()
          Checks if this element is a node start
 boolean isProperty()
          Checks if this element is a property
 long size()
          Returns the size of the this element if it's a property.
 boolean wasBinary()
          Checks if this elem is a property and has binary content.
 boolean wasString()
          Checks if this elem is a property and has string content.
 
Methods inherited from class com.day.durbo.DurboInput.Element
localName, name, prefix, toString, uri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DurboInput.Property

public DurboInput.Property(String name,
                           int type,
                           boolean multiple,
                           DurboValue[] values)
Method Detail

getType

public int getType()

isMultiple

public boolean isMultiple()

getValues

public DurboValue[] getValues()

getJcrValues

public Value[] getJcrValues(ValueFactory factory)
                     throws IOException,
                            RepositoryException
Throws:
IOException
RepositoryException

isProperty

public boolean isProperty()
Description copied from class: DurboInput.Element
Checks if this element is a property

Specified by:
isProperty in class DurboInput.Element
Returns:
true if this element is a property; false otherwise

isNodeStart

public boolean isNodeStart()
Description copied from class: DurboInput.Element
Checks if this element is a node start

Specified by:
isNodeStart in class DurboInput.Element
Returns:
true if this element is a node start; false otherwise

isNodeEnd

public boolean isNodeEnd()
Description copied from class: DurboInput.Element
Checks if this element is a node end

Specified by:
isNodeEnd in class DurboInput.Element
Returns:
true if this element is a node end; false otherwise

getString

public String getString()
Description copied from class: DurboInput.Element
Convenience method

Specified by:
getString in class DurboInput.Element
Returns:
the string.

wasBinary

public boolean wasBinary()
Description copied from class: DurboInput.Element
Checks if this elem is a property and has binary content.

Specified by:
wasBinary in class DurboInput.Element
Returns:
true if this element has binary content.

wasString

public boolean wasString()
Description copied from class: DurboInput.Element
Checks if this elem is a property and has string content.

Specified by:
wasString in class DurboInput.Element
Returns:
true if this element has string content.

size

public long size()
Description copied from class: DurboInput.Element
Returns the size of the this element if it's a property.

Specified by:
size in class DurboInput.Element
Returns:
the size of the this element if it's a property.


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