Copyright 2008 Motorola Inc. and Nokia Corporation. All Rights Reserved.
Specification License

javax.microedition.broadcast.esg
Class Attribute

java.lang.Object
  extended by javax.microedition.broadcast.esg.Attribute
Direct Known Subclasses:
BooleanAttribute, DateAttribute, NumericAttribute, ObjectAttribute, StringAttribute

public abstract class Attribute
extends java.lang.Object

Base class for all metadata attributes.

Use of Attributes is documented in MetadataSet.

See Also:
MetadataSet, CommonMetadataSet

Method Summary
 boolean equals(java.lang.Object obj)
          Tells if two attributes are equal.
 java.lang.String getName()
          Gets the string representation of the attribute as defined in the broadcast spec.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object obj)
Tells if two attributes are equal.

Overrides:
equals in class java.lang.Object
Returns:
true if obj is same type and its name is is the same as the type and name of this attribute, respectively. Otherwise false is returned. Comparison of the names is not case sensitive.

getName

public java.lang.String getName()
Gets the string representation of the attribute as defined in the broadcast spec.

Returns:
The string representation of the attribute as defined in the broadcast spec. The return value cannot be null.


Copyright 2008 Motorola Inc. and Nokia Corporation. All Rights Reserved.
Specification License