com.hp.hpl.deli
Class ProfileAttribute

java.lang.Object
  extended bycom.hp.hpl.deli.ProfileAttribute
All Implemented Interfaces:
java.io.Serializable

public abstract class ProfileAttribute
extends java.lang.Object
implements java.io.Serializable

This class represents a profile attribute.

Author:
Mark H. Butler (mark-h.butler@hp.com)
See Also:
Serialized Form

Constructor Summary
ProfileAttribute()
          Create a new profile attribute.
 
Method Summary
 boolean contains(java.lang.String value)
          Does the attribute contain this literal value?
 java.util.Vector get()
          Retrieve the value from a profile attribute.
 java.lang.String getAttribute()
          Get the name of the attribute.
 java.lang.String getCollectionType()
          Get the collectionType of the attribute.
 java.lang.String getComponent()
          Get the component that the attribute belongs to.
 java.util.Vector getDefaultValue()
          Get the profile default attribute value.
 com.hp.hpl.jena.rdf.model.Resource getProperty(java.lang.String propName)
          Get a given property about this attributes Vocabulary entry.
 java.lang.String getResolution()
          Get the resolution rule applied to the attribute.
 java.lang.String getType()
          Get the type of the attribute.
 java.lang.String getUri()
          Get the Uri for the attribute.
 java.util.Vector getValue()
          Get the profile attribute value.
 java.lang.String toString()
          Converts the object to a String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProfileAttribute

public ProfileAttribute()
Create a new profile attribute.

Method Detail

getValue

public java.util.Vector getValue()
Get the profile attribute value.

Returns:
The attribute value.

getDefaultValue

public java.util.Vector getDefaultValue()
Get the profile default attribute value.

Returns:
The default attribute value.

contains

public boolean contains(java.lang.String value)
Does the attribute contain this literal value?

Returns:
Does the attribute contain this literal value?

getProperty

public com.hp.hpl.jena.rdf.model.Resource getProperty(java.lang.String propName)
Get a given property about this attributes Vocabulary entry.

Returns:
the property value as a QName

getComponent

public java.lang.String getComponent()
Get the component that the attribute belongs to.

Returns:
The component.

getAttribute

public java.lang.String getAttribute()
Get the name of the attribute.

Returns:
The attribute name.

getResolution

public java.lang.String getResolution()
Get the resolution rule applied to the attribute.

Returns:
The resolution rule.

getCollectionType

public java.lang.String getCollectionType()
Get the collectionType of the attribute.

Returns:
The attribute collectionType.

getType

public java.lang.String getType()
Get the type of the attribute.

Returns:
The attribute type.

getUri

public java.lang.String getUri()
Get the Uri for the attribute.

Returns:
The actual Uri used by DELI for this attribute. (Note that this may be different than the Uri sent with a profile, if the uri sent with a profile was an alias defined in the namespace configuration file).

get

public java.util.Vector get()
Retrieve the value from a profile attribute. This method enforces the rule that normal attribute values always override default attribute values.

Returns:
The attribute value.

toString

public java.lang.String toString()
Converts the object to a String.

Returns:
The ProfileAttribute as a String.