Class PageItem

All Implemented Interfaces:
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:
  • Constructor Details

    • 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 Details

    • getName

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

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

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

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

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

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

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

      public void setMirrored(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 Double getLeftpos()
      Gets leftpos.
      Returns:
      the leftpos
    • setLeftpos

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

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

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

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

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

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

      public void setBottompos(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 String getKind()
      Description copied from class: Template
      Gets kind.
      Overrides:
      getKind in class Template
      Returns:
      the kind
    • setKind

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

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

      public void setFormat(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 Integer getColor()
      Gets color.
      Returns:
      the color
    • setColor

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public void setRealHeight(Double realHeight)
      Sets real height.
      Parameters:
      realHeight - the real height
    • getId

      public int getId()
      Description copied from class: Comet3Entity
      Gets id.
      Overrides:
      getId in class Comet3Entity
      Returns:
      the id
    • setId

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

      public void applyValuesTo(CometEntity item)
      Description copied from class: Template
      Apply values to.
      Overrides:
      applyValuesTo in class Template
      Parameters:
      item - the item
    • 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(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 String tagsToMemberships(Set<String> tags)
      Tags to memberships string.
      Parameters:
      tags - the tags
      Returns:
      the string
    • tagsToDomainName

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

      public static String tagsToTypeName(Set<String> tags)
    • tagsToMemberships

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

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

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

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

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

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

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

      public static Set<String> removeTypes(Set<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