wt.rule.init
Class AttrValue

java.lang.Object
  extended bywt.rule.init.AbstractAlgoValue
      extended bywt.rule.init.AttrValue
All Implemented Interfaces:
AlgoValue, InitRuleElem, Serializable

public class AttrValue
extends AbstractAlgoValue
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
 boolean finalAttr
          If true, then ignore any values specified for this attribute when this specification is merged with another specification.
 boolean force
          Apply this attribute value to an object even if a value has already been specified for the attribute.
 String id
          The identifier of this attribute.
 boolean ignore
          If true, then ignore any values specified for this attribute when merging this specification with another specification.
private  AttributeValues parent
           
private static String RESOURCE
           
 
Fields inherited from class wt.rule.init.AbstractAlgoValue
algorithm, args
 
Fields inherited from interface wt.rule.init.AlgoValue
ALGORITHM, ARGS
 
Constructor Summary
AttrValue(AttributeValues parent, String id, String algorithm, boolean ignore, boolean force, boolean finalAttr)
          Create a new attribute value using the specified parameters.
 
Method Summary
 AttrValue copyTo(AttributeValues copyParent)
          Copy this AttrValue to another AttributeValues specification.
 boolean equals(Object obj)
          

Supported API: false
 String getId()
          Gets the value of the attribute: id; The identifier of this attribute.
 String getObjType()
          Return the objType that this attribute value belongs to.
(package private)  AttributeValues getParent()
          Gets the value of the attribute: parent; The attribute values specification that this belongs to.
 boolean isFinal()
          If true, then ignore any values specified for this attribute when this specification is merged with another specific.
 boolean isForce()
          Gets the value of the attribute: force; Apply this attribute value to an object even if a value has already been specified for the attribute.
 boolean isIgnore()
          Gets the value of the attribute: ignore; If true, then ignore any values specified for this attribute when merging this specification with another specification.
 void moveTo(AttributeValues newParent)
          Move this attribute value to another AttributeValues specification.
(package private)  void setParent(AttributeValues a_Parent)
          Sets the value of the attribute: parent; The attribute values specification that this belongs to.
 void writeXML(Writer writer)
          Write the XML for this specification to the specified Writer.
 
Methods inherited from class wt.rule.init.AbstractAlgoValue
addArg, addArg, addArg, copyArgsTo, equals, getAlgorithm, getArg, getArgs, removeArg, setArg, toString, writeArgs
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

id

public final String id
The identifier of this attribute.

Supported API: false


ignore

public final boolean ignore
If true, then ignore any values specified for this attribute when merging this specification with another specification.

Supported API: false


force

public final boolean force
Apply this attribute value to an object even if a value has already been specified for the attribute.

Supported API: false


finalAttr

public final boolean finalAttr
If true, then ignore any values specified for this attribute when this specification is merged with another specification.

Supported API: false


parent

private AttributeValues parent
Constructor Detail

AttrValue

public AttrValue(AttributeValues parent,
                 String id,
                 String algorithm,
                 boolean ignore,
                 boolean force,
                 boolean finalAttr)
Create a new attribute value using the specified parameters.

Supported API: false

Parameters:
parent - the specification that this attribute value belongs to
id - the identifier of the attribute
algorithm - the algorithm that is used to compute the attribute's value
ignore - whether the value specification for this attribute should be ignored
force -
finalAttr -
Method Detail

getId

public final String getId()
Gets the value of the attribute: id; The identifier of this attribute.

Supported API: false

Returns:
String

isIgnore

public final boolean isIgnore()
Gets the value of the attribute: ignore; If true, then ignore any values specified for this attribute when merging this specification with another specification.

Supported API: false

Returns:
boolean

isForce

public final boolean isForce()
Gets the value of the attribute: force; Apply this attribute value to an object even if a value has already been specified for the attribute.

Supported API: false

Returns:
boolean

getParent

AttributeValues getParent()
Gets the value of the attribute: parent; The attribute values specification that this belongs to.

Supported API: false

Returns:
AttributeValues

setParent

void setParent(AttributeValues a_Parent)
Sets the value of the attribute: parent; The attribute values specification that this belongs to.

Supported API: false

Parameters:
a_Parent -

isFinal

public boolean isFinal()
If true, then ignore any values specified for this attribute when this specification is merged with another specific.

Supported API: false

Returns:
boolean

getObjType

public String getObjType()
Return the objType that this attribute value belongs to.

Supported API: false

Specified by:
getObjType in interface InitRuleElem
Returns:
String

moveTo

public void moveTo(AttributeValues newParent)
Move this attribute value to another AttributeValues specification.

Supported API: false

Parameters:
newParent -

copyTo

public AttrValue copyTo(AttributeValues copyParent)
Copy this AttrValue to another AttributeValues specification. Return the newly created copy.

Supported API: false

Parameters:
copyParent - the parent to copy to
Returns:
AttrValue

equals

public boolean equals(Object obj)


Supported API: false

Overrides:
equals in class AbstractAlgoValue
Parameters:
obj -
Returns:
boolean

writeXML

public void writeXML(Writer writer)
              throws IOException
Write the XML for this specification to the specified Writer.

Supported API: false

Specified by:
writeXML in interface InitRuleElem
Parameters:
writer -
Throws:
IOException