|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.object.MetaViewSource
A class that represents a source for a MetaViewAttribute.
Field Summary | |
static java.lang.String |
ATT_SOURCE_ATTRIBUTE_NAME
|
static java.lang.String |
code_id
|
static java.lang.String |
EL_CONSTANT_VALUE
|
static java.lang.String |
ELEMENT
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
MetaViewSource()
|
|
MetaViewSource(org.w3c.dom.Element e)
Construct from an XML element. |
|
MetaViewSource(java.lang.Object constantValue)
Constructor. |
|
MetaViewSource(ObjectRef source,
java.lang.String sourceAttributeName)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
getConstantValue()
Get the constant value of this source. |
java.lang.String |
getElementName()
Return the element name. |
java.util.List |
getReferences()
Return all ObjectRefs referenced by this source. |
java.lang.String |
getSourceAttributeName()
Return the name of the attribute on the source resource. |
ObjectRef |
getSourceRef()
Return the source ObjectRef, or null if this source is a constant value. |
int |
hashCode()
|
void |
parseXml(org.w3c.dom.Element e)
Parse the given XML into a MetaViewTarget. |
void |
setConstantValue(java.lang.Object constant)
Set the constant value of the source. |
void |
setSourceAttributeName(java.lang.String name)
Set the name of the attribute on the source resource. |
void |
setSourceRef(ObjectRef source)
Set the ObjectRef to that of the source or to null if we are dealing with a constant value. |
java.lang.String |
toString()
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize into a buffer with optional indentation. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String ELEMENT
public static final java.lang.String ATT_SOURCE_ATTRIBUTE_NAME
public static final java.lang.String EL_CONSTANT_VALUE
Constructor Detail |
public MetaViewSource()
public MetaViewSource(ObjectRef source, java.lang.String sourceAttributeName)
source
- The ObjectRef of the source. This can be a Resource
or a Rule.sourceAttributeName
- The name of the attribute on the source (if the source
is a Resource).public MetaViewSource(java.lang.Object constantValue)
constantValue
- The constant value of this source.public MetaViewSource(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public java.util.List getReferences()
PersistentObject.getReferences()
public ObjectRef getSourceRef()
public void setSourceRef(ObjectRef source)
source
- The ObjectRef or nullpublic java.lang.String getSourceAttributeName()
public void setSourceAttributeName(java.lang.String name)
name
- The name of the attribute on the source resource.public java.lang.Object getConstantValue()
public void setConstantValue(java.lang.Object constant)
constant
- public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public java.lang.String getElementName()
AbstractXmlObject
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public void toXml(java.lang.StringBuffer b, int indent)
AbstractXmlObject
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
public void parseXml(org.w3c.dom.Element e) throws WavesetException
e
- The XML element to parse.
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |