Class SimpleItem
java.lang.Object
com.denodo.scheduler.client.project.SimpleItem
- All Implemented Interfaces:
Item,Serializable,Comparable<Item>
Item of information that is not compound by another items.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longFor interoperability with possible future changes. -
Constructor Summary
ConstructorsConstructorDescriptionSimpleItem(int reference, String name, String type, boolean draft) SimpleItem(int reference, String name, String type, String subType, boolean draft) SimpleItem(int reference, String name, String type, String subType, boolean draft, String description) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidaddValidType(String validType) intDefines the order of a SimpleItem in a Collection: its names appears in alphabetic order grouped by type and subtype.booleanReturns whether an instance of this class is equals to the one passed as a parameter or not.find(int itemRef) getName()intgetType()inthashCode()Returns the hash code of an instance of this class.booleanisDraft()booleanisEmpty()booleanisValidType(String valueType) booleanremove(int itemref) voidsetDescription(String description) voidsetDraft(boolean draft) voidvoidsetSubType(String subType) voidtoString()boolean
-
Field Details
-
serialVersionUID
protected static final long serialVersionUIDFor interoperability with possible future changes.- See Also:
-
-
Constructor Details
-
SimpleItem
public SimpleItem() -
SimpleItem
-
SimpleItem
-
SimpleItem
-
-
Method Details
-
getReference
public int getReference()- Specified by:
getReferencein interfaceItem- Returns:
- the reference
-
getName
-
setName
-
getType
-
setType
- Parameters:
type- the type to set
-
getSubType
- Specified by:
getSubTypein interfaceItem- Returns:
- the subType
-
setSubType
- Parameters:
subType- the subType to set
-
isDraft
public boolean isDraft() -
setDraft
public void setDraft(boolean draft) -
getDescription
- Specified by:
getDescriptionin interfaceItem- Returns:
- the subType
-
setDescription
- Specified by:
setDescriptionin interfaceItem- Parameters:
description- the description to set
-
add
-
find
-
update
-
remove
public boolean remove(int itemref) -
isEmpty
public boolean isEmpty() -
getValues
-
addValidType
- Specified by:
addValidTypein interfaceItem
-
isValidType
- Specified by:
isValidTypein interfaceItem
-
getValidTypes
- Specified by:
getValidTypesin interfaceItem
-
hashCode
public int hashCode()Returns the hash code of an instance of this class. The resulting hash code is the sum of the name and value hash codes. -
equals
Returns whether an instance of this class is equals to the one passed as a parameter or not. This method returns true if the name and the value are equal for both parameters. Returns false otherwise. -
compareTo
Defines the order of a SimpleItem in a Collection: its names appears in alphabetic order grouped by type and subtype. For comparing the Strings aCollatorofTERTIARYstrength dependent on the configured locales is used.- Specified by:
compareToin interfaceComparable<Item>
-
toString
-