anvil.core.naming
Class AnyAttribute

java.lang.Object
  |
  +--anvil.core.Any
        |
        +--anvil.core.AnyAbstractClass
              |
              +--anvil.core.naming.AnyAttribute
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class AnyAttribute
extends AnyAbstractClass

class AnyAttribute


Field Summary
static NativeClass _class
           
static java.lang.Object[] newInstance
           
static java.lang.Object[] p_add
           
static java.lang.Object[] p_contains
           
static java.lang.Object[] p_get
           
static java.lang.Object[] p_remove
           
static java.lang.Object[] p_set
           
 
Fields inherited from class anvil.core.Any
ARRAY0, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, EMPTY_STRING, EMPTY_TUPLE, FALSE, INF, IS_ARRAY, IS_BINARY, IS_BOOLEAN, IS_BUFFER, IS_CLASS, IS_DOUBLE, IS_ENUMERATION, IS_INF, IS_INT, IS_LIST, IS_MAP, IS_NEG_INF, IS_NULL, IS_PATTERN, IS_RANGE, IS_STRING, IS_TUPLE, IS_UNDEFINED, MINUS_ONE, NAN, NEG_INF, NULL, ONE, p_compareTo, p_each, p_equals, p_pipe, p_select, THREE, TRUE, TWO, UNDEFINED, ZERO
 
Constructor Summary
AnyAttribute(javax.naming.directory.Attribute attribute)
           
 
Method Summary
 ClassType classOf()
          Returns the type of this Any.
 java.lang.Object clone()
          Returns shallow copy from this any.
 boolean contains(Any value)
           
 Any copy()
          Returns deep copy from this any.
 boolean deleteReference(Context context, Any index)
           
 Any getReference(Context context, Any index)
           
 BindingIterator iterator()
           
 Any m_add(Any p, Any q)
           
 Any m_clear()
           
 Any m_contains(Any value)
           
 Any m_get(Context context, Any index_)
           
 Any m_getAll(Context context)
           
 Any m_getAttributeDefinition(Context context)
           
 Any m_getAttributeSyntaxDefinition(Context context)
           
 Any m_getID()
           
 Any m_isOrdered()
           
 Any m_remove(Context context, Any param)
           
 Any m_set(Context context, int index, Any value)
           
 Any m_size()
           
static Any newInstance(java.lang.String id, Any[] values)
           
 Any setReference(Context context, Any value)
           
 Any setReference(Context context, Any index, Any value)
           
 int sizeOf()
          Returns the logical size of this any.
 boolean toBoolean()
          Gets the contained value as boolean.
 java.lang.Object toObject()
          Gets the contained value as java.lang.Object.
 
Methods inherited from class anvil.core.AnyAbstractClass
doSerialize, isMutable, serialize, serializeObject, toString, typeOf, unserialize, unserializeObject
 
Methods inherited from class anvil.core.Any
_clone, _copy, _invoke, _invoke, _invoke, _invoke, _invoke, _invoke, _serialize, _unserialize, _wakeup, add, classNameOf, coerce, compare, compareTo, concat, create, create, create, create, create, create, create, create, create, create, create, create, create, create, decrease, deleteAttribute, divide, equals, execute, execute, execute, execute, execute, execute, getAttribute, getRef, has, increase, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDefined, isDouble, isInstanceOf, isInt, isIterator, isList, isMap, isNull, isPattern, isRange, isRef, isSequence, isString, isTuple, isUndefined, m_clone, m_compareTo, m_copy, m_each, m_equals, m_hashCode, m_pipe, m_select, m_toBoolean, m_toString, minus, modulo, multiply, not, plus, setAttribute, setRef, subtract, toAnvil, toAnvil, toAnyBoolean, toAnyDouble, toAnyInt, toAnyString, toArray, toBinary, toBuffer, toByte, toChar, toCode, toDouble, toInt, toList, toLong, toMap, toPattern, toRange, toTuple, type
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

newInstance

public static final java.lang.Object[] newInstance

p_add

public static final java.lang.Object[] p_add

p_contains

public static final java.lang.Object[] p_contains

p_get

public static final java.lang.Object[] p_get

p_remove

public static final java.lang.Object[] p_remove

p_set

public static final java.lang.Object[] p_set

_class

public static final NativeClass _class
Constructor Detail

AnyAttribute

public AnyAttribute(javax.naming.directory.Attribute attribute)
Method Detail

newInstance

public static final Any newInstance(java.lang.String id,
                                    Any[] values)

classOf

public ClassType classOf()
Description copied from class: Any
Returns the type of this Any.

Specified by:
classOf in class AnyAbstractClass

clone

public java.lang.Object clone()
Description copied from class: Any
Returns shallow copy from this any.

Overrides:
clone in class Any
Returns:
Shallow copy

copy

public Any copy()
Description copied from class: Any
Returns deep copy from this any.

Overrides:
copy in class Any

toObject

public java.lang.Object toObject()
Description copied from class: Any
Gets the contained value as java.lang.Object.

Overrides:
toObject in class Any
Returns:
Value as Object.

toBoolean

public boolean toBoolean()
Description copied from class: Any
Gets the contained value as boolean. Integer is considered true if it is different from 0. Double is considered true if it is different from 0.0. String is considered true if it contains "true", "on", "yes" or "1".

Overrides:
toBoolean in class AnyAbstractClass
Returns:
Value as boolean or false if it can't be transformed.

sizeOf

public int sizeOf()
Description copied from class: Any
Returns the logical size of this any.

Overrides:
sizeOf in class Any
Returns:
Logical size

getReference

public Any getReference(Context context,
                        Any index)
Overrides:
getReference in class Any

deleteReference

public boolean deleteReference(Context context,
                               Any index)
Overrides:
deleteReference in class Any

setReference

public Any setReference(Context context,
                        Any index,
                        Any value)
Overrides:
setReference in class Any

setReference

public Any setReference(Context context,
                        Any value)
Overrides:
setReference in class Any

contains

public boolean contains(Any value)
Overrides:
contains in class Any

iterator

public BindingIterator iterator()
Overrides:
iterator in class Any

m_add

public Any m_add(Any p,
                 Any q)

m_clear

public Any m_clear()

m_contains

public Any m_contains(Any value)

m_get

public Any m_get(Context context,
                 Any index_)

m_getAll

public Any m_getAll(Context context)

m_getAttributeDefinition

public Any m_getAttributeDefinition(Context context)

m_getAttributeSyntaxDefinition

public Any m_getAttributeSyntaxDefinition(Context context)

m_getID

public Any m_getID()

m_isOrdered

public Any m_isOrdered()

m_remove

public Any m_remove(Context context,
                    Any param)

m_set

public Any m_set(Context context,
                 int index,
                 Any value)

m_size

public Any m_size()