Class PageItem

  • All Implemented Interfaces:
    java.io.Serializable

    public class PageItem
    extends Template

    Java class for pageitem complex type. For internal use only

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="pageitem">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="id" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
             <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1"/>
             <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1"/>
             <element name="direction" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1"/>
             <element name="magnets" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
             <element name="mirrored" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
             <element name="data" type="{http://comet.priint.com/configuration/entities/common}data" minOccurs="1"/>
             <element name="preview" type="{http://comet.priint.com/configuration/entities/common}preview" minOccurs="1"/>
             <element name="type" type="{http://comet.priint.com/configuration/entities/common}type" minOccurs="1"/>
             <element name="state" type="{http://comet.priint.com/configuration/entities/common}state" minOccurs="1"/>
             <element name="domain" type="{http://comet.priint.com/configuration/entities/common}domain" minOccurs="1"/>
             <element name="placeholder" type="{http://comet.priint.com/configuration/entities/common}placeholder" minOccurs="1"/>
             <element name="leftpos" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="1"/>
             <element name="toppos" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="1"/>
             <element name="rightpos" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="1"/>
             <element name="bottompos" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="1"/>
             <element name="spread" type="{http://comet.priint.com/configuration/entities/common}spread" minOccurs="1"/>
             <element name="kind" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1"/>
             <element name="format" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
             <element name="record" type="{http://comet.priint.com/configuration/entities/common}record" minOccurs="1"/>
             <element name="color" type="{http://comet.priint.com/configuration/entities/common}color" minOccurs="1"/>
             <element name="textflowPrefix1Script" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
             <element name="textflowPrefix1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1"/>
             <element name="textflowPrefixNScript" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
             <element name="textflowPrefixN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1"/>
             <element name="memberships" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="1"/>
             <element name="buildSupportScript" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
             <element name="hasShapes" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
             <element name="active" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="1"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Constructor Detail

      • PageItem

        public PageItem()
        Instantiates a new Page item.
      • PageItem

        public PageItem​(int id)
        Instantiates a new Page item.
        Parameters:
        id - the id
      • PageItem

        public PageItem​(CometTemplate template)
        Instantiates a new Page item.
        Parameters:
        template - the template
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets name.
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Sets name.
        Parameters:
        name - the name
      • getDescription

        public java.lang.String getDescription()
        Gets description.
        Returns:
        the description
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets description.
        Parameters:
        description - the description
      • getMagnets

        public java.lang.Integer getMagnets()
        Gets magnets.
        Returns:
        the magnets
      • setMagnets

        public void setMagnets​(java.lang.Integer magnets)
        Sets magnets.
        Parameters:
        magnets - the magnets
      • getMirrored

        public java.lang.Integer getMirrored()
        Gets mirrored.
        Returns:
        the mirrored
      • setMirrored

        public void setMirrored​(java.lang.Integer mirrored)
        Sets mirrored.
        Parameters:
        mirrored - the mirrored
      • getData

        public Common.Data getData()
        Gets data.
        Returns:
        the data
      • setData

        public void setData​(Common.Data data)
        Sets data.
        Parameters:
        data - the data
      • getPreview

        public Common.Preview getPreview()
        Gets preview.
        Returns:
        the preview
      • setPreview

        public void setPreview​(Common.Preview preview)
        Sets preview.
        Parameters:
        preview - the preview
      • getType

        public Common.Type getType()
        Gets type.
        Returns:
        the type
      • setType

        public void setType​(Common.Type type)
        Sets type.
        Parameters:
        type - the type
      • getState

        public Common.State getState()
        Gets state.
        Returns:
        the state
      • setState

        public void setState​(Common.State state)
        Sets state.
        Parameters:
        state - the state
      • getDomain

        public Common.Domain getDomain()
        Gets domain.
        Returns:
        the domain
      • setDomain

        public void setDomain​(Common.Domain domain)
        Sets domain.
        Parameters:
        domain - the domain
      • getPlaceholder

        public Common.Placeholder getPlaceholder()
        Gets placeholder.
        Returns:
        the placeholder
      • setPlaceholder

        public void setPlaceholder​(Common.Placeholder placeholder)
        Sets placeholder.
        Parameters:
        placeholder - the placeholder
      • getLeftpos

        public java.lang.Double getLeftpos()
        Gets leftpos.
        Returns:
        the leftpos
      • setLeftpos

        public void setLeftpos​(java.lang.Double leftpos)
        Sets leftpos.
        Parameters:
        leftpos - the leftpos
      • getToppos

        public java.lang.Double getToppos()
        Gets toppos.
        Returns:
        the toppos
      • setToppos

        public void setToppos​(java.lang.Double toppos)
        Sets toppos.
        Parameters:
        toppos - the toppos
      • getRightpos

        public java.lang.Double getRightpos()
        Gets rightpos.
        Returns:
        the rightpos
      • setRightpos

        public void setRightpos​(java.lang.Double rightpos)
        Sets rightpos.
        Parameters:
        rightpos - the rightpos
      • getBottompos

        public java.lang.Double getBottompos()
        Gets bottompos.
        Returns:
        the bottompos
      • setBottompos

        public void setBottompos​(java.lang.Double bottompos)
        Sets bottompos.
        Parameters:
        bottompos - the bottompos
      • getSpread

        public PageItem.Spread getSpread()
        Gets spread.
        Returns:
        the spread
      • setSpread

        public void setSpread​(PageItem.Spread spread)
        Sets spread.
        Parameters:
        spread - the spread
      • getKind

        public java.lang.String getKind()
        Description copied from class: Template
        Gets kind.
        Overrides:
        getKind in class Template
        Returns:
        the kind
      • setKind

        public void setKind​(java.lang.String kind)
        Sets kind.
        Parameters:
        kind - the kind
      • getFormat

        public java.lang.Integer getFormat()
        Gets format.
        Returns:
        the format
      • setFormat

        public void setFormat​(java.lang.Integer format)
        Sets format.
        Parameters:
        format - the format
      • getRecord

        public Common.Record getRecord()
        Gets record.
        Returns:
        the record
      • setRecord

        public void setRecord​(Common.Record record)
        Sets record.
        Parameters:
        record - the record
      • getColor

        public java.lang.Integer getColor()
        Gets color.
        Returns:
        the color
      • setColor

        public void setColor​(java.lang.Integer color)
        Sets color.
        Parameters:
        color - the color
      • getMemberships

        public java.lang.String getMemberships()
        Gets memberships.
        Returns:
        the memberships
      • setMemberships

        public void setMemberships​(java.lang.String memberships)
        Sets memberships.
        Parameters:
        memberships - the memberships
      • getBuildSupportScript

        public java.lang.Integer getBuildSupportScript()
        Gets build support script.
        Returns:
        the build support script
      • setBuildSupportScript

        public void setBuildSupportScript​(java.lang.Integer buildSupportScript)
        Sets build support script.
        Parameters:
        buildSupportScript - the build support script
      • getHasShapes

        public java.lang.Integer getHasShapes()
        Gets has shapes.
        Returns:
        the has shapes
      • setHasShapes

        public void setHasShapes​(java.lang.Integer hasShapes)
        Sets has shapes.
        Parameters:
        hasShapes - the has shapes
      • getActive

        public java.lang.Integer getActive()
        Gets active.
        Returns:
        the active
      • setActive

        public void setActive​(java.lang.Integer active)
        Sets active.
        Parameters:
        active - the active
      • getTextflowPrefix1Action

        public java.lang.Integer getTextflowPrefix1Action()
        Gets textflow prefix 1 action.
        Returns:
        the textflow prefix 1 action
      • setTextflowPrefix1Action

        public void setTextflowPrefix1Action​(java.lang.Integer textflowPrefix1Action)
        Sets textflow prefix 1 action.
        Parameters:
        textflowPrefix1Action - the textflow prefix 1 action
      • getTextflowPrefix1

        public java.lang.String getTextflowPrefix1()
        Gets textflow prefix 1.
        Returns:
        the textflow prefix 1
      • setTextflowPrefix1

        public void setTextflowPrefix1​(java.lang.String textflowPrefix1)
        Sets textflow prefix 1.
        Parameters:
        textflowPrefix1 - the textflow prefix 1
      • getTextflowPrefixNAction

        public java.lang.Integer getTextflowPrefixNAction()
        Gets textflow prefix n action.
        Returns:
        the textflow prefix n action
      • setTextflowPrefixNAction

        public void setTextflowPrefixNAction​(java.lang.Integer textflowPrefixNAction)
        Sets textflow prefix n action.
        Parameters:
        textflowPrefixNAction - the textflow prefix n action
      • getTextflowPrefixN

        public java.lang.String getTextflowPrefixN()
        Gets textflow prefix n.
        Returns:
        the textflow prefix n
      • setTextflowPrefixN

        public void setTextflowPrefixN​(java.lang.String textflowPrefixN)
        Sets textflow prefix n.
        Parameters:
        textflowPrefixN - the textflow prefix n
      • getHasMinSize

        public java.lang.Integer getHasMinSize()
        Gets has min size.
        Returns:
        the has min size
      • setHasMinSize

        public void setHasMinSize​(java.lang.Integer hasMinSize)
        Sets has min size.
        Parameters:
        hasMinSize - the has min size
      • getRealWidth

        public java.lang.Double getRealWidth()
        Gets real width.
        Returns:
        the real width
      • setRealWidth

        public void setRealWidth​(java.lang.Double realWidth)
        Sets real width.
        Parameters:
        realWidth - the real width
      • getRealHeight

        public java.lang.Double getRealHeight()
        Gets real height.
        Returns:
        the real height
      • setRealHeight

        public void setRealHeight​(java.lang.Double realHeight)
        Sets real height.
        Parameters:
        realHeight - the real height
      • setId

        public void setId​(int id)
        Description copied from class: Comet3Entity
        Sets id.
        Overrides:
        setId in class Comet3Entity
        Parameters:
        id - the id
      • entityEquals

        public boolean entityEquals​(CometEntity item)
        Description copied from class: Template
        Entity equals boolean.
        Overrides:
        entityEquals in class Template
        Parameters:
        item - the other
        Returns:
        the boolean
      • entityEquals

        public boolean entityEquals​(java.lang.Object other)
        Description copied from class: Comet3Entity
        Entity equals boolean.
        Overrides:
        entityEquals in class Template
        Parameters:
        other - the other
        Returns:
        the boolean
      • entityEquals

        public boolean entityEquals​(CometTemplate template)
        Entity equals boolean.
        Parameters:
        template - the template
        Returns:
        the boolean
      • tagsToMemberships

        public static java.lang.String tagsToMemberships​(java.util.Set<java.lang.String> tags)
        Tags to memberships string.
        Parameters:
        tags - the tags
        Returns:
        the string
      • tagsToDomainName

        public static java.lang.String tagsToDomainName​(java.util.Set<java.lang.String> tags)
        Tags to domain name string.
        Parameters:
        tags - the tags
        Returns:
        the string
      • tagsToTypeName

        public static java.lang.String tagsToTypeName​(java.util.Set<java.lang.String> tags)
      • tagsToMemberships

        public static java.lang.String tagsToMemberships​(CometEntity template)
        Tags to memberships string.
        Parameters:
        template - the template
        Returns:
        the string
      • escapeQuotes

        public static java.lang.String escapeQuotes​(java.lang.String in)
        Escape quotes string.
        Parameters:
        in - the in
        Returns:
        the string
      • membershipsToTags

        public static java.util.Set<java.lang.String> membershipsToTags​(java.lang.String memberships)
                                                                 throws InvalidArgumentException
        Memberships to tags set.
        Parameters:
        memberships - the memberships
        Returns:
        the set
        Throws:
        InvalidArgumentException - the invalid argument exception
      • readQuoted

        public static java.util.List<java.lang.String> readQuoted​(java.lang.String in)
                                                           throws InvalidArgumentException
        Read quoted list.
        Parameters:
        in - the in
        Returns:
        the list
        Throws:
        InvalidArgumentException - the invalid argument exception
      • mergeMemberships

        public static java.util.Set<java.lang.String> mergeMemberships​(java.util.Set<java.lang.String> fromTags,
                                                                       java.lang.String fromProperty)
        Merge memberships set.
        Parameters:
        fromTags - the from tags
        fromProperty - the from property
        Returns:
        the set
      • removeMemberships

        public static java.util.Set<java.lang.String> removeMemberships​(java.util.Set<java.lang.String> tags)
        Remove memberships set.
        Parameters:
        tags - the tags
        Returns:
        the set
      • removeDomain

        public static java.util.Set<java.lang.String> removeDomain​(java.util.Set<java.lang.String> tags)
        Remove domain set.
        Parameters:
        tags - the tags
        Returns:
        the set
      • removeTypes

        public static java.util.Set<java.lang.String> removeTypes​(java.util.Set<java.lang.String> tags)
        Remove types set.
        Parameters:
        tags - the tags
        Returns:
        the set
      • diff

        public Difference diff​(CometTemplate template)
        Diff difference.
        Parameters:
        template - the template
        Returns:
        the difference
      • references

        public final boolean references​(PageItem other)
        References boolean.
        Parameters:
        other - the other
        Returns:
        the boolean
      • discards

        public final boolean discards​(PageItem other)
        Discards boolean.
        Parameters:
        other - the other
        Returns:
        the boolean