biz.c24.io.api.data
Class AnyElement

java.lang.Object
  extended by biz.c24.io.api.data.DataComponent
      extended by biz.c24.io.api.data.Element
          extended by biz.c24.io.api.data.AnyElement
All Implemented Interfaces:
Any, ModelComponent, Serializable

public class AnyElement
extends Element
implements Any

An element wildcard.

Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class biz.c24.io.api.data.DataComponent
CARDINALITY_UNBOUNDED, IO_VALIDATE_DATABASE_KEY_PRESENCE
 
Constructor Summary
AnyElement()
          Constructs a new instance which will require subsequent initialisation.
AnyElement(int minCardinality, int maxCardinality, DataModel model)
          Constructs a new instance with the specified values.
 
Method Summary
 void addNamespace(String namespace)
          Adds the specified namespace.
 boolean equals(Object o)
           
 String getNamespace(int index)
          Returns the namespace at index.
 int getNamespaceCount()
          Returns the number of namespaces.
 ProcessContentsEnum getProcessContents()
          Returns the directive for processing the contents of this object.
 int hashCode()
           
 void removeNamespace(String namespace)
          Removes the specified namespace.
 void setProcessContents(ProcessContentsEnum processContents)
          Sets the directive for processing the contents of this object.
 
Methods inherited from class biz.c24.io.api.data.Element
addDatabaseKeyRef, addSubstitution, createObject, formatObject, getBitMapIndex, getBlock, getDatabaseKeyRef, getDatabaseKeyRefCount, getDatabaseKeyRefs, getElementRef, getFinal, getForm, getSubstitution, getSubstitution, getSubstitution, getSubstitutionCount, getSubstitutionGroup, isAbstract, isComposition, isIdentifier, isNillable, parseObject, removeDatabaseKeyRef, removeSubstitution, setAbstract, setBitMapIndex, setBlock, setComposition, setDatabaseKeyRefs, setFinal, setIdentifier, setNillable, setSubstitutionGroup
 
Methods inherited from class biz.c24.io.api.data.DataComponent
createObject, getAnnotation, getCardinalityConstraint, getCardinalityString, getDatabaseColumnName, getDefaultValue, getDescription, getFixedValue, getForm, getLengthConstraint, getLog, getMaxCardinality, getMinCardinality, getModel, getName, getOriginalName, getRef, getSSOffset, getType, isFixedCardinality, isGroup, isOptional, isPrimaryKey, isRepeating, setAnnotation, setCardinalityConstraint, setDatabaseColumnName, setDefaultValue, setFixedValue, setForm, setGroup, setLengthConstraint, setMaxCardinality, setMinCardinality, setModel, setName, setOriginalName, setPrimaryKey, setRef, setSSOffset, setType, toString, validate, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface biz.c24.io.api.data.Any
getMaxCardinality, getMinCardinality, getName
 

Constructor Detail

AnyElement

public AnyElement()
Constructs a new instance which will require subsequent initialisation.


AnyElement

public AnyElement(int minCardinality,
                  int maxCardinality,
                  DataModel model)
Constructs a new instance with the specified values.

Parameters:
minCardinality - The minimum cardinality.
maxCardinality - The maximum cardinality or DataComponent.CARDINALITY_UNBOUNDED.
model - The data model.
Throws:
NullPointerException - if name is null.
IllegalArgumentException - if minimum or maximum cardinality are less than zero or minimum cardinality is greater than maximum cardinality.
Method Detail

getProcessContents

public ProcessContentsEnum getProcessContents()
Description copied from interface: Any
Returns the directive for processing the contents of this object.

Specified by:
getProcessContents in interface Any
Returns:
The process contents directive.

setProcessContents

public void setProcessContents(ProcessContentsEnum processContents)
Sets the directive for processing the contents of this object.

Parameters:
processContents - The new value.

getNamespaceCount

public int getNamespaceCount()
Description copied from interface: Any
Returns the number of namespaces.

Specified by:
getNamespaceCount in interface Any
Returns:
The number of namespaces.

getNamespace

public String getNamespace(int index)
Description copied from interface: Any
Returns the namespace at index.

Specified by:
getNamespace in interface Any
Parameters:
index - The index of the required namespace.
Returns:
The namespace at index.

addNamespace

public void addNamespace(String namespace)
Adds the specified namespace.

Parameters:
namespace - The new value.
Throws:
NullPointerException - if namespace is null.

removeNamespace

public void removeNamespace(String namespace)
Removes the specified namespace.

Parameters:
namespace - The old value.

equals

public boolean equals(Object o)
Overrides:
equals in class DataComponent

hashCode

public int hashCode()
Overrides:
hashCode in class DataComponent


C24 Technologies © 2002-2012: All Rights Reserved.