Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)


Class Attribute

  extended by oracle.ultrasearch.query.Attribute

Direct Known Subclasses:
DateAttribute, NumberAttribute, StringAttribute

public abstract class Attribute
extends java.lang.Object

An attribute is a key used to refer to some property of a document.

Attribute class is an abstract parent class for different types of attributes. An concrete attribute has a name and a type. The type refers to the type of the attribute values it can be associated with.

Currently the following types are supported: String, Number, Date. Each are implemented in subclasses StringAttribute, NumberAttribute, DateAttribute.

Note: attribute names should be treated case-insensitively. So string attributes named "Author" and "AUTHOR" refer to the same attribute. Nevertheless, Attribute class leaves capitalization of the name unchanged, so getName() always returns the name used in the construction of the object.


Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int getId()
          Get the attribute's id
 java.lang.String getName()
          Get the attribute's name
abstract  java.lang.String getUniqueName()
          Get the attribute's unique name.


Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait


Method Detail


public int getId()
Get the attribute's id
attribute integer id


public java.lang.String getName()
Get the attribute's name
attribute's string name


public abstract java.lang.String getUniqueName()
Get the attribute's unique name. An unique attribute name is synthesized by concatenating the attribute name with the attribute type, using an underscore.
For example: a StringAttribute named "A" is uniquely identified by "A_STRING". Likewise for NumberAttribute and DateAttribute: "A_NUMBER", "A_DATE".
attribute's unique name


public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. Two attribute objects are equal if and only if
equals in class java.lang.Object
true if this attribute is same as the obj argument, false otherwise

Skip navigation links

Oracle® Ultra Search Java API Reference
11g Release 1 (11.1)


Copyright © 2002,2008, Oracle. All Rights Reserved.