|
||||||||||
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.MetaViewTarget
A class that represents a target for a MetaViewAttribute. This encapsulates the target resource, the condition on which the target is flowed, and the event types on which target is flowed.
Field Summary | |
static java.lang.String |
ATT_EVENT_TYPES
|
static java.lang.String |
ATT_GLOBAL
|
static java.lang.String |
ATT_TARGET_ATTRIBUTE_NAME
|
static java.lang.String |
code_id
|
static java.lang.String |
CREATE
|
static java.lang.String |
EL_CONDITION
|
static java.lang.String |
EL_TARGET_RESOURCE
|
static java.lang.String |
ELEMENT
|
static java.lang.String[] |
EVENT_TYPES
|
static java.lang.String |
UPDATE
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
MetaViewTarget(org.w3c.dom.Element e)
Construct from an XML element. |
|
MetaViewTarget(ObjectRef target,
java.lang.String targetAttributeName,
ObjectRef condition,
boolean global)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
boolean |
flowsOnEventType(java.lang.String eventType)
Return whether this target should receive its attribute for the given event type. |
ObjectRef |
getConditionRef()
Return the ObjectRef of the condition that can restrict the flow to this target, or null if there is no condition. |
java.lang.String |
getElementName()
Return the element name. |
java.util.List |
getReferences()
Return all ObjectRefs referenced by this attribute. |
java.lang.String |
getTargetAttributeName()
Return the name of the attribute on the target resource. |
ObjectRef |
getTargetRef()
Return the target ObjectRef, or null if the target is assumed to be the MetaView itself. |
int |
hashCode()
|
boolean |
isGlobal()
Return whether the target is global or not. |
void |
setConditionRef(ObjectRef condition)
|
void |
setFlowsOnEventType(java.lang.String eventType,
boolean flows)
Set whether this target should (or should not) receive its attribute for the given event type. |
void |
setGlobal(boolean global)
Set whether the target is global or not. |
void |
setTargetAttributeName(java.lang.String name)
|
void |
setTargetRef(ObjectRef ref)
|
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 CREATE
public static final java.lang.String UPDATE
public static final java.lang.String[] EVENT_TYPES
public static final java.lang.String ELEMENT
public static final java.lang.String ATT_GLOBAL
public static final java.lang.String ATT_TARGET_ATTRIBUTE_NAME
public static final java.lang.String ATT_EVENT_TYPES
public static final java.lang.String EL_TARGET_RESOURCE
public static final java.lang.String EL_CONDITION
Constructor Detail |
public MetaViewTarget(ObjectRef target, java.lang.String targetAttributeName, ObjectRef condition, boolean global)
target
- The ObjectRef of the target resource. This can be
null if the target is IDM (either a local, global, or
operational attribute).targetAttributeName
- The name of the attribute on the target to be set.condition
- The ObjectRef of the condition to be applied to this
target.global
- Whether this is a global target.public MetaViewTarget(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public java.util.List getReferences()
PersistentObject.getReferences()
public ObjectRef getTargetRef()
public void setTargetRef(ObjectRef ref)
public ObjectRef getConditionRef()
public void setConditionRef(ObjectRef condition)
public boolean isGlobal()
public void setGlobal(boolean global)
global
- Whether the target is global or not.public java.lang.String getTargetAttributeName()
public void setTargetAttributeName(java.lang.String name)
public boolean flowsOnEventType(java.lang.String eventType)
eventType
- The event type to check - should be one of the
event type constants (CREATE, UPDATE, etc...).
public void setFlowsOnEventType(java.lang.String eventType, boolean flows)
eventType
- The event type for which to set the flow status -
should be one of the event type constants (CREATE,
UPDATE, etc...)flows
- Whether or not the target should receive its
attribute for the given eventType.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |