Style Intelligence v12.0

inetsoft.uql.asset
Class SourceInfo

java.lang.Object
  extended by inetsoft.uql.asset.SourceInfo
All Implemented Interfaces:
AssetObject, inetsoft.uql.util.XSourceInfo, inetsoft.util.XMLSerializable, Serializable, Cloneable

public class SourceInfo
extends Object
implements inetsoft.uql.util.XSourceInfo, AssetObject

Source info contains the source information of a BoundTableAssembly.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface inetsoft.uql.util.XSourceInfo
ASSET, CATALOG, CUBE, EMBEDDED_DATA, LOCAL_QUERY, MODEL, NONE, PARAMETER, PHYSICAL_TABLE, QUERY, QUERY_FOLDER, REPORT, SCHEMA, TABLE_TYPE, VS_ASSEMBLY
 
Constructor Summary
SourceInfo()
          Constructor.
SourceInfo(int type, String prefix, String source)
          Constructor.
 
Method Summary
 void checkValidity()
          Check if the source info is valid.
 Object clone()
          Clone the object.
 boolean equals(Object obj)
          Check if equals another object.
 String getPrefix()
          Get the prefix.
 String getProperty(String key)
          Get a property of the source info.
 String getSource()
          Get the source.
 int getType()
          Get the type.
 int hashCode()
          Get the hash code value.
 boolean isEmpty()
          Check if the source is empty.
 void parseXML(Element elem)
          Method to parse an xml segment.
 void setPrefix(String prefix)
          Set the prefix.
 void setProperty(String key, String value)
          Set a property of the source info.
 void setSource(String source)
          Set the source.
 void setType(int type)
          Set the type.
 String toString()
          Return a displayable string.
 String toView()
          Return a displayable string including folder description.
 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

SourceInfo

public SourceInfo()
Constructor.


SourceInfo

public SourceInfo(int type,
                  String prefix,
                  String source)
Constructor.

Method Detail

getType

public int getType()
Get the type.

Specified by:
getType in interface inetsoft.uql.util.XSourceInfo
Returns:
the type of the source info.

setType

public void setType(int type)
Set the type.

Specified by:
setType in interface inetsoft.uql.util.XSourceInfo
Parameters:
type - the specified type.

getPrefix

public String getPrefix()
Get the prefix.

Specified by:
getPrefix in interface inetsoft.uql.util.XSourceInfo
Returns:
the prefix of the source info.

setPrefix

public void setPrefix(String prefix)
Set the prefix.

Specified by:
setPrefix in interface inetsoft.uql.util.XSourceInfo
Parameters:
prefix - the specified prefix.

getSource

public String getSource()
Get the source.

Specified by:
getSource in interface inetsoft.uql.util.XSourceInfo
Returns:
the source of the source info.

setSource

public void setSource(String source)
Set the source.

Specified by:
setSource in interface inetsoft.uql.util.XSourceInfo
Parameters:
source - the specified source.

getProperty

public String getProperty(String key)
Get a property of the source info.

Specified by:
getProperty in interface inetsoft.uql.util.XSourceInfo
Parameters:
key - the name of the property.
Returns:
the value of the property.

setProperty

public void setProperty(String key,
                        String value)
Set a property of the source info.

Specified by:
setProperty in interface inetsoft.uql.util.XSourceInfo
Parameters:
key - the name of the property.
value - the value of the property, null to remove the property.

checkValidity

public void checkValidity()
                   throws Exception
Check if the source info is valid.

Throws:
Exception

isEmpty

public boolean isEmpty()
Check if the source is empty.

Specified by:
isEmpty in interface inetsoft.uql.util.XSourceInfo
Returns:
true if is empty, false otherwise.

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

toView

public String toView()
Return a displayable string including folder description.


toString

public String toString()
Return a displayable string.

Overrides:
toString in class Object

clone

public Object clone()
Clone the object.

Specified by:
clone in interface AssetObject
Overrides:
clone in class Object
Returns:
the cloned object.

hashCode

public int hashCode()
Get the hash code value.

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

equals

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

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

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