|
|||||||||
| Home >> All >> ru >> gammalabs >> ice >> [ structure overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
ru.gammalabs.ice.structure
Class PartitionModel

java.lang.Objectru.gammalabs.ice.structure.PartitionModel
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable
- public class PartitionModel
- extends java.lang.Object
- implements java.lang.Comparable, java.lang.Cloneable
- extends java.lang.Object
Section
| Field Summary | |
static int |
AUTO_ORDER_NUMBER
In case order number equals AUTO_ORDER_NUMBER, it is assigned automatically. |
static int |
CLOSE_TYPE
Close type of partition. |
private java.lang.Boolean |
hasIEs
|
private long |
id
PartitionModel id. |
private boolean |
isTemplate
|
private java.lang.String |
name
PartitionModel names. |
static int |
OPEN_TYPE
Open type of partition. |
private int |
orderNumber
PartitionModel order number. |
private ru.gammalabs.ice.publishing.framework.Template |
pageTemplate
PartitionModel page pageTemplate. |
private long |
pageTemplateId
|
private java.lang.String |
parameters
Parameters. |
private java.lang.Long |
parentPartitionId
Parent partition id or null |
private boolean |
system
System mode. |
private int |
typeId
PartitionModel type id. |
| Constructor Summary | |
PartitionModel()
|
|
| Method Summary | |
java.lang.Object |
clone()
This method may be called to create a new copy of the Object. |
int |
compareTo(java.lang.Object o)
Compares this object with another, and returns a numerical result based on the comparison. |
boolean |
equals(java.lang.Object obj)
Determine whether this Object is semantically equal to another Object. |
long |
getId()
Gets partition id. |
java.lang.String |
getName()
Gets partition name. |
int |
getOrderNumber()
Gets order number. |
ru.gammalabs.ice.publishing.framework.Template |
getPageTemplate()
Gets page pageTemplate. |
long |
getPageTemplateId()
|
java.lang.String |
getParameters()
Gets parameters. |
java.lang.Long |
getParentPartitionId()
|
private long |
getRootPartitionId()
|
boolean |
getSystem()
Gets system mode. |
int |
getTypeId()
Gets partition type id. |
int |
hashCode()
Get a value that represents this Object, as uniquely as possible within the confines of an int. |
java.lang.Boolean |
hasIEs()
|
boolean |
isRoot()
Determines if partition is root. |
boolean |
isTemplate()
|
boolean |
isVisible()
|
(package private) void |
setId(long id)
Sets partition id. |
(package private) void |
setId(java.lang.String id)
Sets partition id. |
void |
setIEs(java.lang.Boolean hasIEs)
|
void |
setName(java.lang.String name)
Sets name. |
void |
setOrderNumber(int orderNumber)
Sets order number. |
void |
setOrderNumber(java.lang.String orderNumber)
Sets order number. |
void |
setPageTemplate(ru.gammalabs.ice.publishing.framework.Template pageTemplate)
Sets page pageTemplatelate. |
(package private) void |
setPageTemplateId(long pageTemplateId)
|
void |
setParameters(java.lang.String parameters)
Sets parameters. |
void |
setParentPartitionId(java.lang.Long parentPartitionId)
|
void |
setSystem(boolean system)
Sets partition system mode. |
void |
setSystem(java.lang.String system)
Sets partition system mode. |
void |
setTemplate(boolean isTemplate)
|
void |
setTypeId(int typeId)
Sets type id. |
void |
setTypeId(java.lang.String typeId)
Sets type id. |
java.lang.String |
toString()
Converts PartitionModel object to string. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
OPEN_TYPE
public static final int OPEN_TYPE
- Open type of partition.
- See Also:
- Constant Field Values
CLOSE_TYPE
public static final int CLOSE_TYPE
- Close type of partition.
- See Also:
- Constant Field Values
AUTO_ORDER_NUMBER
public static final int AUTO_ORDER_NUMBER
- In case order number equals
AUTO_ORDER_NUMBER, it is assigned automatically.- See Also:
- Constant Field Values
id
private long id
- PartitionModel id.
parentPartitionId
private java.lang.Long parentPartitionId
- Parent partition id or null
typeId
private int typeId
- PartitionModel type id.
system
private boolean system
- System mode. True if partition is system partition, otherwise false.
orderNumber
private int orderNumber
- PartitionModel order number.
name
private java.lang.String name
- PartitionModel names.
pageTemplate
private ru.gammalabs.ice.publishing.framework.Template pageTemplate
- PartitionModel page pageTemplate.
parameters
private java.lang.String parameters
- Parameters.
pageTemplateId
private long pageTemplateId
isTemplate
private boolean isTemplate
hasIEs
private java.lang.Boolean hasIEs
| Constructor Detail |
PartitionModel
public PartitionModel()
| Method Detail |
setId
void setId(long id)
- Sets partition id.
setId
void setId(java.lang.String id)
- Sets partition id.
setTypeId
public void setTypeId(int typeId)
- Sets type id.
setTypeId
public void setTypeId(java.lang.String typeId)
- Sets type id.
setSystem
public void setSystem(boolean system)
- Sets partition system mode.
setSystem
public void setSystem(java.lang.String system)
- Sets partition system mode.
setOrderNumber
public void setOrderNumber(int orderNumber)
- Sets order number.
setOrderNumber
public void setOrderNumber(java.lang.String orderNumber)
- Sets order number.
setName
public void setName(java.lang.String name)
- Sets name.
setPageTemplate
public void setPageTemplate(ru.gammalabs.ice.publishing.framework.Template pageTemplate)
- Sets page pageTemplatelate.
setParameters
public void setParameters(java.lang.String parameters)
- Sets parameters.
getId
public long getId()
- Gets partition id.
getTypeId
public int getTypeId()
- Gets partition type id.
getSystem
public boolean getSystem()
- Gets system mode.
getOrderNumber
public int getOrderNumber()
- Gets order number.
getName
public java.lang.String getName()
- Gets partition name.
getPageTemplate
public ru.gammalabs.ice.publishing.framework.Template getPageTemplate()
- Gets page pageTemplate.
getPageTemplateId
public long getPageTemplateId()
setPageTemplateId
void setPageTemplateId(long pageTemplateId)
getParameters
public java.lang.String getParameters()
- Gets parameters.
isVisible
public boolean isVisible()
toString
public java.lang.String toString()
- Converts
PartitionModelobject to string.
getParentPartitionId
public java.lang.Long getParentPartitionId()
setParentPartitionId
public void setParentPartitionId(java.lang.Long parentPartitionId)
isRoot
public boolean isRoot()
- Determines if partition is root.
getRootPartitionId
private long getRootPartitionId()
equals
public boolean equals(java.lang.Object obj)
- Description copied from class:
java.lang.Object - Determine whether this Object is semantically equal
to another Object.
There are some fairly strict requirements on this method which subclasses must follow:
- It must be transitive. If
a.equals(b)andb.equals(c), thena.equals(c)must be true as well. - It must be symmetric.
a.equals(b)andb.equals(a)must have the same value. - It must be reflexive.
a.equals(a)must always be true. - It must be consistent. Whichever value a.equals(b) returns on the first invocation must be the value returned on all later invocations.
a.equals(null)must be false.- It must be consistent with hashCode(). That is,
a.equals(b)must implya.hashCode() == b.hashCode(). The reverse is not true; two objects that are not equal may have the same hashcode, but that has the potential to harm hashing performance.
This is typically overridden to throw a java.lang.ClassCastException if the argument is not comparable to the class performing the comparison, but that is not a requirement. It is legal for
a.equals(b)to be true even thougha.getClass() != b.getClass(). Also, it is typical to never cause a java.lang.NullPointerException.In general, the Collections API (
java.util) use theequalsmethod rather than the==operator to compare objects. However, java.util.IdentityHashMap is an exception to this rule, for its own good reasons.The default implementation returns
this == o. - It must be transitive. If
compareTo
public int compareTo(java.lang.Object o)
- Description copied from interface:
java.lang.Comparable - Compares this object with another, and returns a numerical result based
on the comparison. If the result is negative, this object sorts less
than the other; if 0, the two are equal, and if positive, this object
sorts greater than the other. To translate this into boolean, simply
perform
o1.compareTo(o2) <op> 0, where op is one of <, <=, =, !=, >, or >=.You must make sure that the comparison is mutual, ie.
sgn(x.compareTo(y)) == -sgn(y.compareTo(x))(where sgn() is defined as -1, 0, or 1 based on the sign). This includes throwing an exception in either direction if the two are not comparable; hence,compareTo(null)should always throw an Exception.You should also ensure transitivity, in two forms:
x.compareTo(y) > 0 && y.compareTo(z) > 0impliesx.compareTo(z) > 0; andx.compareTo(y) == 0impliesx.compareTo(z) == y.compareTo(z).- Specified by:
compareToin interfacejava.lang.Comparable
hashCode
public int hashCode()
- Description copied from class:
java.lang.Object - Get a value that represents this Object, as uniquely as
possible within the confines of an int.
There are some requirements on this method which subclasses must follow:
- Semantic equality implies identical hashcodes. In other
words, if
a.equals(b)is true, thena.hashCode() == b.hashCode()must be as well. However, the reverse is not necessarily true, and two objects may have the same hashcode without being equal. - It must be consistent. Whichever value o.hashCode() returns on the first invocation must be the value returned on all later invocations as long as the object exists. Notice, however, that the result of hashCode may change between separate executions of a Virtual Machine, because it is not invoked on the same object.
Notice that since
hashCodeis used in java.util.Hashtable and other hashing classes, a poor implementation will degrade the performance of hashing (so don't blindly implement it as returning a constant!). Also, if calculating the hash is time-consuming, a class may consider caching the results.The default implementation returns
System.identityHashCode(this) - Semantic equality implies identical hashcodes. In other
words, if
clone
public java.lang.Object clone()
- Description copied from class:
java.lang.Object - This method may be called to create a new copy of the
Object. The typical behavior is as follows:
o == o.clone()is falseo.getClass() == o.clone().getClass()is trueo.equals(o)is true
However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>
Object.equals(Object)55 .If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.
Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.
All array types implement Cloneable, and override this method as follows (it should never fail):
public Object clone() { try { super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(e.getMessage()); } }
setTemplate
public void setTemplate(boolean isTemplate)
isTemplate
public boolean isTemplate()
hasIEs
public java.lang.Boolean hasIEs()
setIEs
public void setIEs(java.lang.Boolean hasIEs)
|
|||||||||
| Home >> All >> ru >> gammalabs >> ice >> [ structure overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
ru.gammalabs.ice.structure.PartitionModel