Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ru.gammalabs.ice.publishing
Class PartitionIF  view PartitionIF download PartitionIF.java

java.lang.Object
  extended byru.gammalabs.ice.publishing.AbstractIF
      extended byru.gammalabs.ice.publishing.PartitionIF
All Implemented Interfaces:
java.lang.Cloneable

public class PartitionIF
extends AbstractIF
implements java.lang.Cloneable

Represents field of information element IE and its type IEType as list of partitions PartitionModel.


Field Summary
private static org.apache.log4j.Category log
          For debuging errors
private  java.util.Set partitionsId
          Set of partitions identifieris Long.
 
Constructor Summary
PartitionIF()
          Empty constructor constructs empty HashSet for partitions.
PartitionIF(java.util.Collection ids)
          Constructor.
 
Method Summary
 void addPartition(long id)
          Adds identifier of partition in set of partitions identifier.
 java.lang.Object clone()
          Clone this object.
 boolean equalsTo(AbstractIF obj)
          Compare this object to another MLString object.
 boolean equalsTo(AbstractIF obj, java.util.Locale locale)
          Compare this object to another MLString object.
 java.util.Set getPartitionsIdSet()
          Returns set of all available in this field partitions.
 java.lang.String getValue(java.util.Locale locale)
          Returns identifier of any partition PartitionModel in set of partitions.
 long getValueMaxLength(java.util.Locale locale)
          Returns maximum length of partition set field.
 boolean isNullValue(java.util.Locale locale)
          Returns true if partition set is null or empty.
 void setValue(java.lang.String str, java.util.Locale locale)
          Sets in set of partitions one partition PartitionModel with identifier = str.
 
Methods inherited from class ru.gammalabs.ice.publishing.AbstractIF
getValue, setValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Category log
For debuging errors


partitionsId

private java.util.Set partitionsId
Set of partitions identifieris Long.

Constructor Detail

PartitionIF

public PartitionIF()
Empty constructor constructs empty HashSet for partitions.


PartitionIF

public PartitionIF(java.util.Collection ids)
Constructor.

Method Detail

getPartitionsIdSet

public java.util.Set getPartitionsIdSet()
Returns set of all available in this field partitions. Set is setof Long objects.


getValue

public java.lang.String getValue(java.util.Locale locale)
Returns identifier of any partition PartitionModel in set of partitions. If there is no partition in set of partitions returns "".

Specified by:
getValue in class AbstractIF

equalsTo

public boolean equalsTo(AbstractIF obj)
Compare this object to another MLString object.

Specified by:
equalsTo in class AbstractIF

equalsTo

public boolean equalsTo(AbstractIF obj,
                        java.util.Locale locale)
Compare this object to another MLString object. in locale locale.

Specified by:
equalsTo in class AbstractIF

getValueMaxLength

public long getValueMaxLength(java.util.Locale locale)
Returns maximum length of partition set field.

Specified by:
getValueMaxLength in class AbstractIF

isNullValue

public boolean isNullValue(java.util.Locale locale)
Returns true if partition set is null or empty.

Specified by:
isNullValue in class AbstractIF

addPartition

public void addPartition(long id)
Adds identifier of partition in set of partitions identifier. Clears set of real partitions.


setValue

public void setValue(java.lang.String str,
                     java.util.Locale locale)
              throws ru.gammalabs.ice.publishing.framework.CMSException
Sets in set of partitions one partition PartitionModel with identifier = str. If there is no partition PartitionModel with identifier = str makes partitions empty.

Specified by:
setValue in class AbstractIF

clone

public java.lang.Object clone()
Clone this object.

Specified by:
clone in class AbstractIF