Style Intelligence v12.0

inetsoft.uql.erm
Class VpmObject

java.lang.Object
  extended by inetsoft.uql.erm.VpmObject
All Implemented Interfaces:
inetsoft.util.xml.XMLStorage.XMLFragment, inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable
Direct Known Subclasses:
HiddenColumns, VirtualPrivateModel, VpmCondition

public abstract class VpmObject
extends Object
implements inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable, inetsoft.util.xml.XMLStorage.XMLFragment

Vpm object abstracts the common features of the vpm entities like conditions and hidden columns.

See Also:
Serialized Form

Constructor Summary
VpmObject()
          Constructor.
 
Method Summary
 Object clone()
          Clone the object.
 int compareTo(Object obj)
          Compare to another object.
static VpmObject createVpmObject(Element elem)
          Create a VpmObject from an xml element.
 boolean equals(Object obj)
          Check if equals to another object.
 String getName()
          Get the name of the virtual private model.
 String getScript()
          Get the script.
 int hashCode()
          Get the hash code value of the vpm object.
protected  void parseAttributes(Element elem)
          Parse contents.
protected  void parseContents(Element elem)
          Parse contents.
 void parseXML(Element elem)
          Method to parse an xml segment.
 void setName(String name)
          Set the name of the virtual private model.
 void setScript(String script)
          Set the script.
 String toString()
          Get the string representation.
protected  void writeAttributes(PrintWriter writer)
          Write attributes.
protected  void writeContents(PrintWriter writer)
          Write contents.
 void writeEnd(PrintWriter writer)
           
 void writeStart(PrintWriter writer)
           
 void writeXML(PrintWriter writer)
          Write the xml segment to print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VpmObject

public VpmObject()
Constructor.

Method Detail

createVpmObject

public static VpmObject createVpmObject(Element elem)
                                 throws Exception
Create a VpmObject from an xml element.

Parameters:
elem - the specified xml element.
Returns:
the created VpmObject object.
Throws:
Exception

getName

public String getName()
Get the name of the virtual private model.

Returns:
the name of the virtual private model.

setName

public void setName(String name)
Set the name of the virtual private model.

Parameters:
name - the name of the virtual private model.

getScript

public String getScript()
Get the script.

Returns:
the script to check if should apply the vpm object.

setScript

public void setScript(String script)
Set the script.

Parameters:
script - the script to check if should apply the vpm object.

hashCode

public int hashCode()
Get the hash code value of the vpm object.

Overrides:
hashCode in class Object
Returns:
the hash code value of the vpm object.

equals

public boolean equals(Object obj)
Check if equals to another object.

Overrides:
equals in class Object
Parameters:
obj - the specified object.
Returns:
true if equals, false otherwise.

compareTo

public int compareTo(Object obj)
Compare to another object.

Specified by:
compareTo in interface Comparable
Parameters:
obj - the specified object to compare to.

writeXML

public final void writeXML(PrintWriter writer)
Write the xml segment to print writer.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Parameters:
writer - the destination print writer.

writeStart

public void writeStart(PrintWriter writer)
Specified by:
writeStart in interface inetsoft.util.xml.XMLStorage.XMLFragment

writeEnd

public void writeEnd(PrintWriter writer)
Specified by:
writeEnd in interface inetsoft.util.xml.XMLStorage.XMLFragment

writeAttributes

protected void writeAttributes(PrintWriter writer)
Write attributes.

Parameters:
writer - the specified writer.

parseAttributes

protected void parseAttributes(Element elem)
Parse contents.

Parameters:
elem - the specified xml element.

writeContents

protected void writeContents(PrintWriter writer)
Write contents.

Parameters:
writer - the specified writer.

parseContents

protected void parseContents(Element elem)
                      throws Exception
Parse contents.

Parameters:
elem - the specified xml element.
Throws:
Exception

parseXML

public final void parseXML(Element elem)
                    throws Exception
Method to parse an xml segment.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
elem - the specified xml element.
Throws:
Exception

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
the string representation.

clone

public Object clone()
Clone the object.

Overrides:
clone in class Object
Returns:
the cloned object.

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.