org.alfresco.repo.forms
Class Item

java.lang.Object
  extended by org.alfresco.repo.forms.Item

public class Item
extends java.lang.Object

Represents an item a form is generated for.

This class can be augmented with the item's type and a representational URL by the form processor used to process the item.


Field Summary
protected  java.lang.String id
           
protected  java.lang.String kind
           
protected  java.lang.String type
           
protected  java.lang.String url
           
 
Constructor Summary
Item(java.lang.String kind, java.lang.String id)
          Constructs an item.
 
Method Summary
 java.lang.String getId()
          Returns the identifier of the item
 java.lang.String getKind()
          Returns the kind of item.
 java.lang.String getType()
          Returns the type of the item the form is for, could be a content model type, a workflow task type, an XML schema etc.
 java.lang.String getUrl()
          Returns a URL that represents the item
 void setType(java.lang.String type)
          Sets the type of the item
 void setUrl(java.lang.String url)
          Sets the URL that represents the item
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

kind

protected java.lang.String kind

id

protected java.lang.String id

type

protected java.lang.String type

url

protected java.lang.String url
Constructor Detail

Item

public Item(java.lang.String kind,
            java.lang.String id)
Constructs an item.

Parameters:
kind - The kind of item, for example, 'node', 'task'
id - The identifier of the item
Method Detail

getKind

public java.lang.String getKind()
Returns the kind of item.

Returns:
The kind of item

getId

public java.lang.String getId()
Returns the identifier of the item

Returns:
The identifier of the item

getType

public java.lang.String getType()
Returns the type of the item the form is for, could be a content model type, a workflow task type, an XML schema etc.

Returns:
The type of the item

getUrl

public java.lang.String getUrl()
Returns a URL that represents the item

Returns:
A URL representing the item

setType

public void setType(java.lang.String type)
Sets the type of the item

Parameters:
type - The type

setUrl

public void setUrl(java.lang.String url)
Sets the URL that represents the item

Parameters:
url - The URL

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.