public class ComplexTagEditConfig extends ComplexTagConfig
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,PropertySetConfig> |
overrideCache |
protected ComplexTagDiff |
tagDiff |
Constructor and Description |
---|
ComplexTagEditConfig(ComplexTypeManager manager,
ComplexTag model) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Member> |
addMember(java.lang.String parentUID,
Tag object)
Adds a member to this type, located at the specified folder path.
|
int |
compareTo(Tag o) |
AccessRightsType |
getAccessRights()
Gets the type of access rights for this tag
|
AlarmConfiguration |
getAlarmStates()
Returns the list of alarm states for this tag
|
TagValue |
getAttribute(TagProp prop)
In this implementation, will try to get it from the diff, otherwise will call getAttributeFromSource
|
DataType |
getDataType()
Returns the datatype of this tag's value property
|
ComplexTagDiff |
getDiff() |
java.lang.Object |
getEditForCommit()
Returns the object to be committed to the gateway.
|
TagEventScripts |
getEventScripts() |
TagPath |
getFullyQualifiedType()
Returns the type id of this tag.
|
Member |
getMember(java.lang.String memberUID)
Returns the member of this complex tag with the given UID, or null if the member doesn't exist.
|
MutableTag |
getMemberEdit(java.lang.String memberUID) |
java.lang.String |
getName()
Returns the name of the tag.
|
PropertySet |
getOverrides(java.lang.String memberUID)
Retrieves the overrides for the specified member of this complex type.
|
TagPermissionsModel |
getPermissionModel()
Returns this tags permission model, if any
|
TagType |
getType()
Returns the type of this tag.
|
TagValue |
getValue()
Returns the value in qualified form- along with quality and timestamp.
|
boolean |
isAlarmingSupported()
Returns true if this tag supports alarming, false otherwise
|
boolean |
isEnabled()
Returns the enabled bit for this tag
|
boolean |
isTypeDef()
Returns whether this complex type is a type definition, or an instance.
|
void |
removeMember(java.lang.String memberUID)
Removes just the specified member from the model.
|
void |
removeOverride(java.lang.String memberUID,
Property targetProp) |
void |
setName(java.lang.String name)
Sets the name of the type or instance.
|
protected ComplexTagDefinition |
updateModelForNewBase(ComplexTagDefinition baseDef)
For the edit based config, we need to add existing local members and newly added members to the new model.
|
addCompositeMembersToDef, addMember, convertParentType, getMembers, getModel, getTypeManager, mergeWithParent, setModel
protected ComplexTagDiff tagDiff
protected java.util.Map<java.lang.String,PropertySetConfig> overrideCache
public ComplexTagEditConfig(ComplexTypeManager manager, ComplexTag model)
public java.lang.Object getEditForCommit()
ComplexTagConfig
getEditForCommit
in class ComplexTagConfig
public MutableTag getMemberEdit(java.lang.String memberUID)
getMemberEdit
in class ComplexTagConfig
public ComplexTagDiff getDiff()
public java.lang.String getName()
Tag
public void setName(java.lang.String name)
MutableComplexTag
public TagPath getFullyQualifiedType()
ComplexTag
public Member getMember(java.lang.String memberUID)
ComplexTag
public boolean isTypeDef()
ComplexTag
public PropertySet getOverrides(java.lang.String memberUID)
ComplexTag
public java.util.List<Member> addMember(java.lang.String parentUID, Tag object)
MutableComplexTag
addMember
in interface MutableComplexTag
addMember
in class ComplexTagConfig
public void removeMember(java.lang.String memberUID)
ComplexTagConfig
removeMember
in interface MutableComplexTag
removeMember
in class ComplexTagConfig
public TagType getType()
Tag
public DataType getDataType()
Tag
public boolean isEnabled()
Tag
public TagValue getValue()
Tag
public AccessRightsType getAccessRights()
Tag
public TagPermissionsModel getPermissionModel()
Tag
public AlarmConfiguration getAlarmStates()
Tag
public TagEventScripts getEventScripts()
public boolean isAlarmingSupported()
Tag
public TagValue getAttribute(TagProp prop)
public int compareTo(Tag o)
public void removeOverride(java.lang.String memberUID, Property targetProp)
protected ComplexTagDefinition updateModelForNewBase(ComplexTagDefinition baseDef)
updateModelForNewBase
in class ComplexTagConfig