biz.c24.io.api.data
Class AnyAttribute

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

public class AnyAttribute
extends Attribute
implements Any

An attribute 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
AnyAttribute()
          Constructs a new instance which will require subsequent initialisation.
AnyAttribute(DataModel model)
          Constructs a new instance from the specified model.
 
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.Attribute
formatObject, getAttributeRef, getForm, getSimpleType, parseObject, setMaxCardinality, setMinCardinality, setRef, setType
 
Methods inherited from class biz.c24.io.api.data.DataComponent
createObject, 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, setModel, setName, setOriginalName, setPrimaryKey, setSSOffset, 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

AnyAttribute

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


AnyAttribute

public AnyAttribute(DataModel model)
Constructs a new instance from the specified model.

Parameters:
model - The model.
Throws:
NullPointerException - if name is null.
IllegalArgumentException - if minimum or maximum cardinality are less than zero or greater than one or if 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 Attribute

hashCode

public int hashCode()
Overrides:
hashCode in class Attribute


C24 Technologies © 2002-2012: All Rights Reserved.