Style Intelligence v12.0

inetsoft.uql
Class XMetaInfo

java.lang.Object
  extended by inetsoft.uql.XMetaInfo
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Cloneable

public class XMetaInfo
extends Object
implements inetsoft.util.XMLSerializable, Serializable, Cloneable

XMetaInfo defines a meta info with drill info and format info.

See Also:
Serialized Form

Constructor Summary
XMetaInfo()
          Create an empty meta info.
 
Method Summary
 Object clone()
          Clone the object.
 boolean equals(Object obj)
          Check if equals another object.
static String formatLocale(Locale locale)
          Format locale to string.
 String getDatePattern()
          Get the date pattern.
 Locale getLocale()
          Get the database locale.
static Locale getLocale(String locale)
          Create locale from string.
 String getProperty(String key)
          Get the data type.
 XDrillInfo getXDrillInfo()
          Get the drill info.
 XFormatInfo getXFormatInfo()
          Get a format info.
 boolean isAsDate()
          Check if it is date.
 boolean isEmpty()
          Check if drill info and format info are empty.
 boolean isXDrillInfoEmpty()
          Check if drill info is empty.
 boolean isXFormatInfoEmpty()
          Check if format info is empty.
 void parseXML(Element tag)
          Method to parse an xml segment.
 void processDrillLinks(List drillLinks)
           
 void removeProperty(String key)
          Remove a property.
 void setAsDate(boolean asDate)
          Set it is date.
 void setDatePattern(String datePattern)
          Set the date pattern.
 void setLocale(Locale locale)
          Set the database locale.
 void setProperty(String key, String value)
          Set data type for the column which created this meta info, it is transient.
 void setXDrillInfo(XDrillInfo info)
          Set the drill info to the info.
 void setXFormatInfo(XFormatInfo info)
          Set a format info to the info.
 String toString()
          Get the string representaion.
 void writeXML(PrintWriter writer)
          Write the xml segment to print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMetaInfo

public XMetaInfo()
Create an empty meta info.

Method Detail

setXDrillInfo

public void setXDrillInfo(XDrillInfo info)
Set the drill info to the info.

Parameters:
info - the drill info.

getXDrillInfo

public XDrillInfo getXDrillInfo()
Get the drill info.


isXDrillInfoEmpty

public boolean isXDrillInfoEmpty()
Check if drill info is empty.


isEmpty

public boolean isEmpty()
Check if drill info and format info are empty.


setXFormatInfo

public void setXFormatInfo(XFormatInfo info)
Set a format info to the info.

Parameters:
info - the drill info.

getXFormatInfo

public XFormatInfo getXFormatInfo()
Get a format info.


isXFormatInfoEmpty

public boolean isXFormatInfoEmpty()
Check if format info is empty.


isAsDate

public boolean isAsDate()
Check if it is date.


setAsDate

public void setAsDate(boolean asDate)
Set it is date.

Parameters:
date. -

getDatePattern

public String getDatePattern()
Get the date pattern.


setDatePattern

public void setDatePattern(String datePattern)
Set the date pattern.

Parameters:
datePattern - the date pattern.

setLocale

public void setLocale(Locale locale)
Set the database locale.


getLocale

public Locale getLocale()
Get the database locale.


setProperty

public void setProperty(String key,
                        String value)
Set data type for the column which created this meta info, it is transient.


removeProperty

public void removeProperty(String key)
Remove a property.


getProperty

public String getProperty(String key)
Get the data type.


equals

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

Overrides:
equals in class Object

toString

public String toString()
Get the string representaion.

Overrides:
toString in class Object

clone

public Object clone()
Clone the object.

Overrides:
clone in class Object

writeXML

public 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.

parseXML

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

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Throws:
Exception

formatLocale

public static String formatLocale(Locale locale)
Format locale to string.


getLocale

public static Locale getLocale(String locale)
Create locale from string.


processDrillLinks

public void processDrillLinks(List drillLinks)

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