public class Modifier extends Object implements Serializable
Modifiers that are parsed from an OIF or JSON formatted request are not resolved and must be resolved before they are applied to server side objects.
| Constructor and Description |
|---|
Modifier()
The mandatory zero arg constructor.
|
Modifier(Modifier original)
The copy constructor.
|
Modifier(ModifyTypeEnum op,
DmcAttribute<?> attr)
Constructs a new Modifier.
|
Modifier(ModifyTypeEnum op,
DmcAttribute<?> attr,
DmcObject referrer)
Constructs a new backref Modifier.
|
Modifier(ModifyTypeEnum op,
DmcAttribute<?> attr,
DmcObject referrer,
int idx)
Constructs a new backref Modifier for indexed attributes.
|
Modifier(ModifyTypeEnum op,
DmcAttribute<?> attr,
int idx)
Constructs a new Modifier for the modification of an indexed attribute.
|
Modifier(ModifyTypeEnum op,
DmcAttributeInfo ai)
Constructs a new Modifier for removal of an attribute
|
Modifier(ModifyTypeEnum op,
DmcAttributeInfo ai,
int idx)
Constructs a new Modifier for setting of the specified index to null.
|
Modifier(String v)
Constructs a new Modifier.
|
Modifier(String pn,
DmcObject referrer,
DmcNamedObjectREF<?> ctr)
Constructs a new backref Modifier for a reference from within a complex type.
|
Modifier(String pn,
DmcObject referrer,
DmcNamedObjectREF<?> ctr,
int ai)
Same as above, but with the attribute ID passed in so that we can support
DmcObject.getReferringObjectsViaAttribute().
|
Modifier(String pn,
DmcObject referrer,
DmcNamedObjectREF<?> ctr,
int ai,
String an)
Same as above, but with the attribute ID passed in so that we can support
DmcObject.getReferringObjectsViaAttribute().
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeIt(DmcInputStreamIF dis) |
DmcAttribute<?> |
getAttribute()
Returns the attribute holder if available.
|
int |
getAttributeID() |
DmcAttributeInfo |
getAttributeInfo() |
String |
getAttributeName() |
int |
getIndex() |
ModifyTypeEnum |
getModifyType() |
String |
getPartName() |
DmcNamedObjectIF |
getReferringObject() |
DmcNamedObjectREF<?> |
getRefFromComplexType() |
Object |
getValue() |
boolean |
isResolved()
A modification is considered resolved if it has a DmcAttribute to contain the value
associated with the modification operation, or, if the operation is an REM.
|
void |
serializeIt(DmcOutputStreamIF dos) |
String |
toString() |
public Modifier()
public Modifier(Modifier original)
original - public Modifier(ModifyTypeEnum op, DmcAttribute<?> attr)
op - The operation.attr - The attribute.public Modifier(ModifyTypeEnum op, DmcAttributeInfo ai)
op - The operation.ai - The attribute info.public Modifier(ModifyTypeEnum op, DmcAttribute<?> attr, int idx)
op - The operation.attr - The attribute.idx - The index being altered.public Modifier(ModifyTypeEnum op, DmcAttributeInfo ai, int idx)
op - The operation.ai - The attribute info.idx - The index being set to null.public Modifier(ModifyTypeEnum op, DmcAttribute<?> attr, DmcObject referrer)
op - The operation.attr - The attribute.referrer - the object that is now referring to another object.public Modifier(String pn, DmcObject referrer, DmcNamedObjectREF<?> ctr)
pn - the name of the part in the complex type that's doing the referring.referrer - the object that is now referring to another object.ctr - the reference in the complex type.public Modifier(String pn, DmcObject referrer, DmcNamedObjectREF<?> ctr, int ai)
pn - the name of the part in the complex type that's doing the referring.referrer - the object that is now referring to another object.ctr - the reference in the complex type.ai - the attribute idpublic Modifier(String pn, DmcObject referrer, DmcNamedObjectREF<?> ctr, int ai, String an)
pn - the name of the part in the complex type that's doing the referring.referrer - the object that is now referring to another object.ctr - the reference in the complex type.ai - the attribute idan - the attribute namepublic Modifier(ModifyTypeEnum op, DmcAttribute<?> attr, DmcObject referrer, int idx)
op - The operation.attr - The attribute.referrer - The object that is now referring to another object.idx - The index through which the reference is made.public Modifier(String v) throws DmcValueException
v - The modification expression.DmcValueExceptionpublic DmcNamedObjectREF<?> getRefFromComplexType()
public int getAttributeID()
public DmcAttributeInfo getAttributeInfo()
public DmcAttribute<?> getAttribute()
public DmcNamedObjectIF getReferringObject()
public boolean isResolved()
public ModifyTypeEnum getModifyType()
public int getIndex()
public String getAttributeName()
public Object getValue()
public String getPartName()
public void serializeIt(DmcOutputStreamIF dos) throws Exception
Exceptionpublic void deserializeIt(DmcInputStreamIF dis) throws Exception
ExceptionCopyright © 2023. All rights reserved.