Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.neoworks.jukex
Interface Attribute

All Known Implementing Classes:
  JukeXAttribute

public interface Attribute

Attributes are classes of information associated with Tracks. (E.g. the Attribute could be "Artist", and then all tracks could have a value for this attribute.)

Author:
  Nick Vincent (nick@neoworks.com)

Field Summary
`static int` | `TYPE_INT` int attribute type
`static int` | `TYPE_STRING` String attribute type

Method Summary
`AttributeValue` | `getAttributeValue(int val)` Get an AttributeValue object representing the integer that was passed
`AttributeValue` | `getAttributeValue(java.lang.String s)` Get an AttributeValue object representing the String object that was passed
`java.lang.String` | `getLocalisedName(java.util.Locale locale)` Get a localised name for this attribute
`java.lang.String` | `getName()` Get the name of this attribute
`int` | `getType()` Return the type of the attribute, which can be equal to Attribute.TYPE_STRING or Attribute.TYPE_INT

Field Detail

### TYPE_STRING

    public static final int TYPE_STRING

  String attribute type

  See Also:
    Constant Field Values

### TYPE_INT

    public static final int TYPE_INT

  int attribute type

  See Also:
    Constant Field Values

Method Detail

### getName

    public java.lang.String getName()

  Get the name of this attribute

  Returns:
    The name of the attribute

### getLocalisedName

    public java.lang.String getLocalisedName(java.util.Locale locale)

  Get a localised name for this attribute

  Parameters:
    `locale` - The required Locale for the name
  Returns:
    A localised name for the attribute

### getType

    public int getType()

  Return the type of the attribute, which can be equal to Attribute.TYPE_STRING or Attribute.TYPE_INT

  Returns:
    The type of the Attribute

### getAttributeValue

    public AttributeValue getAttributeValue(java.lang.String s)

  Get an AttributeValue object representing the String object that was passed

  Parameters:
    `s` - The String to retrieve an AttributeValue object for
  Returns:
    An AttributeValue representing the passed String.

### getAttributeValue

    public AttributeValue getAttributeValue(int val)

  Get an AttributeValue object representing the integer that was passed

  Parameters:
    `val` - The integer to retrieve an AttributeValue object for
  Returns:
    An AttributeValue representing the passed integer.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD