jimm.twice.ice
Class IceItem

java.lang.Object
  extended byjimm.twice.ice.IceItem

public class IceItem
extends java.lang.Object

ICE ice-item or ice-item-ref attributes are used often enough that it's nice to have an objectified representation. This is a container for attribute values. It doesn't hold all possible attributes, just the ones we are interested in.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  java.lang.String contentType
           
protected  int encoding
           
static int ENCODING_BASE64
           
static int ENCODING_RAW
           
protected  java.lang.String name
           
protected  java.lang.String relativeFilePath
           
protected  java.lang.String url
           
 
Method Summary
 java.lang.String getContentType()
           
 int getEncoding()
           
 java.lang.String getRelativeFilePath()
           
 java.lang.String getURL()
           
 boolean isIceItem()
          Returns true if this is an ice-item (and not an ice-item-ref).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENCODING_BASE64

public static final int ENCODING_BASE64
See Also:
Constant Field Values

ENCODING_RAW

public static final int ENCODING_RAW
See Also:
Constant Field Values

relativeFilePath

protected java.lang.String relativeFilePath

encoding

protected int encoding

contentType

protected java.lang.String contentType

name

protected java.lang.String name

url

protected java.lang.String url
Method Detail

getRelativeFilePath

public java.lang.String getRelativeFilePath()

getEncoding

public int getEncoding()

getContentType

public java.lang.String getContentType()

getURL

public java.lang.String getURL()

isIceItem

public boolean isIceItem()
Returns true if this is an ice-item (and not an ice-item-ref). Checks the URL attribute and returns true if the URL is null

Returns:
true if this represents an ice-item, false if this represents an ice-item-ref

toString

public java.lang.String toString()