com.waveset.object
Class ResourceAttribute

java.lang.Object
  extended bycom.waveset.object.ResourceAttribute

public class ResourceAttribute
extends java.lang.Object


Field Summary
static java.lang.String code_id
           
 
Constructor Summary
ResourceAttribute()
           
ResourceAttribute(org.w3c.dom.Element e)
           
ResourceAttribute(java.lang.String xml)
           
 
Method Summary
 void addValue(int index, java.lang.Object value)
          Adds the value to the attribute's values at the specified index.
 void addValue(java.lang.Object value)
          Adds the value to the attribute's values.
 java.lang.Object[] getAllValues()
          Returns an array of the the attribute's values.
 java.lang.String getAttrType()
           
 AttributeValues getAttrValues()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getFacets()
           
 boolean getMultiValued()
           
 java.lang.String getName()
           
 ObjectRef getValidationPolicyRef()
           
 java.lang.Object getValue()
          Returns one of the attribute's values.
 boolean hasDisplayName()
           
 boolean isActiveSync()
           
 boolean isNoTrim()
           
 boolean isParameterized()
           
 boolean isProvision()
           
 void parseXml(org.w3c.dom.Element e)
           
 void parseXml(java.lang.String xml)
           
 void setDescription(java.lang.String desc)
           
 void setDisplayName(java.lang.String name)
           
 void setFacetList(java.util.List facetList)
           
 void setFacets(java.lang.String facets)
           
 void setMultiValued(boolean mv)
           
 void setName(java.lang.String name)
           
 void setNoTrim(boolean noTrim)
           
 void setParameterized(boolean parameter)
           
 void setSyntax(Syntax syntax)
           
 void setType(java.lang.String type)
          Deprecated. - use setSyntax().
 void setValidationPolicy(ObjectRef pol)
           
 void setValue(java.lang.Object value)
          Sets the attribute's value.
 java.lang.String toXml()
           
 void toXml(java.lang.StringBuffer buf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

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

ResourceAttribute

public ResourceAttribute()

ResourceAttribute

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

ResourceAttribute

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

getName

public java.lang.String getName()

hasDisplayName

public boolean hasDisplayName()

isActiveSync

public boolean isActiveSync()

isProvision

public boolean isProvision()

isParameterized

public boolean isParameterized()

getFacets

public java.lang.String getFacets()

getDisplayName

public java.lang.String getDisplayName()

getAttrType

public java.lang.String getAttrType()

isNoTrim

public boolean isNoTrim()

getDescription

public java.lang.String getDescription()

getMultiValued

public boolean getMultiValued()

getValidationPolicyRef

public ObjectRef getValidationPolicyRef()

getValue

public java.lang.Object getValue()
Returns one of the attribute's values.


getAllValues

public java.lang.Object[] getAllValues()
Returns an array of the the attribute's values.


getAttrValues

public AttributeValues getAttrValues()

setValidationPolicy

public void setValidationPolicy(ObjectRef pol)

addValue

public void addValue(java.lang.Object value)
Adds the value to the attribute's values. If the value is null, then nothing is done.


addValue

public void addValue(int index,
                     java.lang.Object value)
Adds the value to the attribute's values at the specified index. If the value is null, then nothing is done.


setValue

public void setValue(java.lang.Object value)
Sets the attribute's value. If the value is null, then all of the attribute's values are cleared (i.e., the attribute no longer has a value).


setNoTrim

public void setNoTrim(boolean noTrim)

setName

public void setName(java.lang.String name)

setMultiValued

public void setMultiValued(boolean mv)

setDescription

public void setDescription(java.lang.String desc)

setDisplayName

public void setDisplayName(java.lang.String name)

setFacets

public void setFacets(java.lang.String facets)

setFacetList

public void setFacetList(java.util.List facetList)

setParameterized

public void setParameterized(boolean parameter)

setType

public void setType(java.lang.String type)
Deprecated. - use setSyntax().


setSyntax

public void setSyntax(Syntax syntax)

toXml

public java.lang.String toXml()

toXml

public void toXml(java.lang.StringBuffer buf)

parseXml

public void parseXml(java.lang.String xml)
              throws WavesetException
Throws:
WavesetException

parseXml

public void parseXml(org.w3c.dom.Element e)
              throws WavesetException
Throws:
WavesetException