public class Item
extends java.lang.Object
This class can be augmented with the item's type and a representational URL by the form processor used to process the item.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
id |
protected java.lang.String |
kind |
protected java.lang.String |
type |
protected java.lang.String |
url |
| Constructor and Description |
|---|
Item(java.lang.String kind,
java.lang.String id)
Constructs an item.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
protected java.lang.String kind
protected java.lang.String id
protected java.lang.String type
protected java.lang.String url
public Item(java.lang.String kind,
java.lang.String id)
kind - The kind of item, for example, 'node', 'task'id - The identifier of the itempublic java.lang.String getKind()
public java.lang.String getId()
public java.lang.String getType()
public java.lang.String getUrl()
public void setType(java.lang.String type)
type - The typepublic void setUrl(java.lang.String url)
url - The URLpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.