|
||||||||||
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.MetaViewAttribute
A MetaViewAttribute represents a single attribute on a MetaView. This contains information such as a name, from where the attribute is derived, and to where the attribute should flow.
Field Summary | |
static java.lang.String |
ATT_AUTHORITATIVE
|
static java.lang.String |
ATT_MERGE
|
static java.lang.String |
ATT_NAME
|
static java.lang.String |
ATT_STORE_LOCALLY
|
static java.lang.String |
code_id
|
static java.lang.String |
EL_SOURCES
|
static java.lang.String |
EL_TARGETS
|
static java.lang.String |
ELEMENT
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
MetaViewAttribute(org.w3c.dom.Element e)
Constructor that takes an Element (required by XmlObject). |
|
MetaViewAttribute(java.lang.String name)
Constructor that takes a name. |
Method Summary | |
void |
addSource(MetaViewSource source)
Add a source to this MetaViewAttribute. |
void |
addTarget(MetaViewTarget target)
Add a target to this MetaViewAttribute. |
boolean |
equals(java.lang.Object o)
|
MetaViewTarget |
fillInIDMUserTarget(boolean isOperational)
Create an "IDM User" target for this MetaViewAttribute if the attribute is local or operational - unless this attribute already has a global target. |
java.lang.String |
getElementName()
Return the element name for the MetaViewAttribute element. |
java.lang.String |
getLocalAttributeName()
Get the target attribute name of the User Extended Attribute that stores this MetaViewAttribute's value (if the attribute is local). |
java.lang.String |
getName()
|
java.util.List |
getReferences()
Return all ObjectRefs referenced by this attribute. |
java.util.List |
getSources()
Return the List of MetaViewSources, or an empty list if none have been set. |
java.util.List |
getTargets()
|
int |
hashCode()
|
boolean |
isAuthoritative()
|
boolean |
isMergeWithValues()
|
boolean |
isStoredLocally()
|
void |
parseXml(org.w3c.dom.Element e)
Parse the given XML into a MetaViewAttribute. |
void |
removeSource(ObjectRef sourceRef,
java.lang.String attrName)
Remove a MetaViewSource with the given source ObjectRef and attribute name. |
void |
removeTarget(ObjectRef targetRef,
java.lang.String attrName)
Remove a MetaViewTarget with the given target ObjectRef and attribute name. |
void |
setAuthoritative(boolean authoritative)
|
void |
setMergeWithValues(boolean mergeWithValues)
|
void |
setName(java.lang.String name)
|
void |
setSources(java.util.List sources)
|
void |
setStoreLocally(boolean storeLocally)
|
void |
setTargets(java.util.List targets)
|
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_NAME
public static final java.lang.String ATT_STORE_LOCALLY
public static final java.lang.String ATT_AUTHORITATIVE
public static final java.lang.String ATT_MERGE
public static final java.lang.String EL_SOURCES
public static final java.lang.String EL_TARGETS
Constructor Detail |
public MetaViewAttribute(java.lang.String name) throws WavesetException
WavesetException
- If the name is null.public MetaViewAttribute(org.w3c.dom.Element e) throws WavesetException
e
- The Element from which to construct this object.Method Detail |
public java.util.List getReferences()
PersistentObject.getReferences()
public java.lang.String getName()
public void setName(java.lang.String name) throws WavesetException
name
- The name to set.
WavesetException
- If the name is null.public java.util.List getSources()
public void setSources(java.util.List sources) throws WavesetException
sources
-
WavesetException
public void addSource(MetaViewSource source) throws WavesetException
source
- The source to add.
WavesetException
- If adding the source would cause a circular
reference, or the source is a duplicate.public void removeSource(ObjectRef sourceRef, java.lang.String attrName)
sourceRef
- The ObjectRef of the source to be removed.attrName
- The attribute name of the source to be removed.public boolean isStoredLocally()
public void setStoreLocally(boolean storeLocally)
storeLocally
- The storeLocally to set.public boolean isAuthoritative()
public void setAuthoritative(boolean authoritative)
authoritative
- Whether the attribute is authoritative or not.public boolean isMergeWithValues()
public void setMergeWithValues(boolean mergeWithValues)
mergeWithValues
- Whether the attribute values is to merged or not.
When this is true, the authoritative attribute is ignored.public java.util.List getTargets()
public void setTargets(java.util.List targets) throws WavesetException
targets
-
WavesetException
public void addTarget(MetaViewTarget target) throws WavesetException
target
- The target to add to this MetaViewAttribute.
WavesetException
- If the target is a circular reference or is
a duplicate.public void removeTarget(ObjectRef targetRef, java.lang.String attrName)
targetRef
- The ObjectRef of the target to be removed.attrName
- The attribute name of the target to be removed.public MetaViewTarget fillInIDMUserTarget(boolean isOperational) throws WavesetException
isOperational
- Whether this attribute is operational.
WavesetException
public java.lang.String getLocalAttributeName()
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public java.lang.String getElementName()
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 |