com.waveset.object
Class AttributeDefinition

java.lang.Object
  extended bycom.waveset.object.PersistentObject
      extended bycom.waveset.object.AttributeDefinition
All Implemented Interfaces:
java.lang.Comparable, javax.naming.Referenceable, XmlObject

public class AttributeDefinition
extends PersistentObject


Nested Class Summary
 
Nested classes inherited from class com.waveset.object.PersistentObject
PersistentObject.Comparator, PersistentObject.InitialInstance
 
Field Summary
static java.lang.String code_id
           
 
Fields inherited from class com.waveset.object.PersistentObject
_trace, trace
 
Constructor Summary
AttributeDefinition()
           
AttributeDefinition(Attribute attribute)
          Attribute implies both name and syntax.
AttributeDefinition(org.w3c.dom.Element e)
           
AttributeDefinition(java.lang.String xml)
           
AttributeDefinition(java.lang.String name, java.lang.String attrType)
          Deprecated. - use AttributeDefinition(String,Syntax)
AttributeDefinition(java.lang.String name, Syntax syntax)
           
 
Method Summary
 void addAttrDefAttrs(java.lang.StringBuffer buf)
           
protected  void addSubclassAttributes(java.lang.StringBuffer b)
          Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist).
 java.lang.String getAttrType()
           
 java.lang.String getDescription()
           
 java.util.List getFacetList()
           
 java.lang.String getFacets()
           
 boolean getIsOrdered()
           
 boolean getMultiValued()
           
 Syntax getSyntax()
           
 Type getType()
          Return the type of this object.
 boolean isNoTrim()
           
protected  void parseSubclassAttributes(org.w3c.dom.Element e)
          No subclass-specific elements protected void addSubclassElements(StringBuffer b) { }
 void setAttrType(java.lang.String attrType)
          Deprecated. - use setSyntax()
 void setDescription(java.lang.String desc)
           
 void setFacetList(java.util.List facetList)
           
 void setFacets(java.lang.String facets)
           
 void setIsOrdered(boolean b)
           
 void setMultiValued(boolean mv)
           
 void setNoTrim(boolean noTrim)
           
 void setSyntax(Syntax syntax)
           
 
Methods inherited from class com.waveset.object.PersistentObject
addCommonElements, addEndTag, addMemberObjectGroup, addMemberObjectGroup, addPersistentAttributes, addStartTag, addSubclassElements, addSummaryAttributes, addXmlHeader, attributesMatch, attributesMatch, attributesMatch, checkReference, checkReferences, clearId, cloneAs, cloneObject, compareTo, create, create, create, create, createLastModItem, createLastModItem, createLastModItemList, directObjectGroupMember, dump, dumpFile, equals, fakeId, getAttribute, getAttributeValues, getAttributeValues, getAuthReferences, getAuthType, getBasicAttributes, getBasicAttributes, getBasicAttributes, getCache, getCounterValue, getCreateDate, getCreator, getDisplayableName, getDisplayName, getElementName, getEncryptedValues, getId, getIdOrName, getInitialInstances, getLastMod, getLastModDate, getLastModifier, getLastModItemId, getLockInfo, getMemberObjectGroupRefs, getMemberObjectGroupRefsUpTo, getMemberObjectGroups, getName, getNameOrId, getProperties, getProperty, getPropertyAsString, getPropertyList, getQueryableAttributes, getReference, getReferences, getRuleDrivenMemberObjectGroupRefs, getRuleDrivenMemberObjectGroupRefsUpTo, getRuleDrivenMemberObjectGroups, getSubtype, getSummaryAttributes, getSummaryString, hasEncryptedData, hashCode, identityEquals, isAlias, isHidden, isId, isProtected, isProtectedFromDelete, isReferencedIn, listOperationalAttributes, listQueryableAttributes, listQueryableReferenceAttributes, listSummaryAttributes, objectGroupMember, objectGroupMemberRef, parseCommonElement, parseCommonElements, parsePersistentAttributes, parseSubclassElements, parseXml, parseXml, prepareForSerialization, prepareToSerialize, println, reEncrypt, reEncryptSubclassAttributes, removeMemberObjectGroup, removeProperty, resolve, resolve, resolve, resolveArray, resolveArrayByFetching, resolveObjectReference, resolveObjectReferences, resolveReference, resolveSummaryAttributes, resolveSummaryAttributes, ruleDrivenObjectGroupMemberRef, setAuthType, setAuthType, setCache, setCreateDate, setCreator, setDisplayName, setDisplayName, setHidden, setIsAlias, setLastMod, setLastMod, setLastModDate, setLastModifier, setMemberObjectGroupRef, setMemberObjectGroupRefs, setMemberObjectGroups, setName, setProperties, setProperty, setPropertyList, setProtected, setProtectedFromDelete, setRuleDrivenMembersCache, setSubtype, setTrace, toString, toXml, toXml, toXml, toXmlFile, visit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

AttributeDefinition

public AttributeDefinition()

AttributeDefinition

public AttributeDefinition(java.lang.String name,
                           java.lang.String attrType)
Deprecated. - use AttributeDefinition(String,Syntax)


AttributeDefinition

public AttributeDefinition(java.lang.String name,
                           Syntax syntax)

AttributeDefinition

public AttributeDefinition(Attribute attribute)
Attribute implies both name and syntax.


AttributeDefinition

public AttributeDefinition(java.lang.String xml)
                    throws WavesetException

AttributeDefinition

public AttributeDefinition(org.w3c.dom.Element e)
                    throws WavesetException
Method Detail

getSyntax

public Syntax getSyntax()

setSyntax

public void setSyntax(Syntax syntax)

getAttrType

public java.lang.String getAttrType()

setAttrType

public void setAttrType(java.lang.String attrType)
Deprecated. - use setSyntax()


getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String desc)

getMultiValued

public boolean getMultiValued()
Returns:
true if this attribute can have multiple values; otherwise false.

setMultiValued

public void setMultiValued(boolean mv)

isNoTrim

public boolean isNoTrim()

setNoTrim

public void setNoTrim(boolean noTrim)

getIsOrdered

public boolean getIsOrdered()
Returns:
true if the order of attribute values should be considered significant; otherwise false.

setIsOrdered

public void setIsOrdered(boolean b)
                  throws InvalidArgument
Throws:
InvalidArgument

getFacets

public java.lang.String getFacets()

setFacets

public void setFacets(java.lang.String facets)

getFacetList

public java.util.List getFacetList()

setFacetList

public void setFacetList(java.util.List facetList)

getType

public Type getType()
Description copied from class: PersistentObject
Return the type of this object. This must be implemented by each subclass.

Specified by:
getType in class PersistentObject

addSubclassAttributes

protected void addSubclassAttributes(java.lang.StringBuffer b)
Description copied from class: PersistentObject
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). PersistentObject's default implementation is a no-op.

NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.

Overrides:
addSubclassAttributes in class PersistentObject
See Also:


parseSubclassAttributes

protected void parseSubclassAttributes(org.w3c.dom.Element e)
                                throws WavesetException
No subclass-specific elements protected void addSubclassElements(StringBuffer b) { }

Overrides:
parseSubclassAttributes in class PersistentObject
Throws:
WavesetException
See Also:

PersistentObject's default implementation is a no-op.

, PersistentObject.parseXml(Element)

addAttrDefAttrs

public void addAttrDefAttrs(java.lang.StringBuffer buf)