public class MRepoProperties extends MAbstractProperties implements MProperties
Constructor and Description |
---|
MRepoProperties(MRepoPropertiesRegistry reg,
java.lang.String url,
boolean isSettable,
boolean isLocked,
boolean chaseRef)
Constr : facilitates creating settable properties
|
MRepoProperties(MRepoPropertiesRegistry reg,
java.lang.String url,
boolean isSettable,
boolean isLocked,
boolean chaseRef,
boolean doSubstitution)
Constr : facilitates creating settable properties
|
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String entry,
java.lang.Object value)
Append this name/value pair to the assoc
|
void |
delete(java.lang.String entry)
Delete the attribute and nested elements referenced by the specified path parameter.
|
java.util.Enumeration |
elements(java.lang.String entry)
Enumerate over all immediate subelements in TIBCO Repository, starting at the specified
location.
|
java.lang.Object |
get(java.lang.String path)
Retrieve the value of the attribute at the specified location.
|
java.lang.Object |
get(java.lang.String path,
boolean doSubstitution)
Retrieve the value of the attribute at the specified location with or without
global variable substitution.
|
int |
getCount(java.lang.String entry)
Returns the number of properties/attributes that share the same name.
|
java.lang.String |
getPath()
Returns the path used to create the properties
|
MPropertiesRegistry |
getRegistry()
Accessor method for Properties registry
|
boolean |
isChanged()
set when prop.
|
boolean |
isLinkChased()
Returns if link chasing is turned on
|
boolean |
isLocked()
Determine whether this
MProperties instance is locked. |
boolean |
isWritable()
chk if this is settable proerty
|
void |
lock()
lock a repo node for update and delete
|
void |
set(java.lang.String entry,
java.lang.Object value)
Only String , byte[] & GlobalName are expected values
|
void |
setLinkChased(boolean flag)
Set whether link chasing should be turned on, by default don't do anything
|
java.lang.String |
toString() |
get, get, getPropertyCount, getString, getString, getValue, getValue, toPrevRepoKey, toRepoKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, getPropertyCount, getString, getString, getValue, getValue
public MRepoProperties(MRepoPropertiesRegistry reg, java.lang.String url, boolean isSettable, boolean isLocked, boolean chaseRef) throws MException
MException
public MRepoProperties(MRepoPropertiesRegistry reg, java.lang.String url, boolean isSettable, boolean isLocked, boolean chaseRef, boolean doSubstitution) throws MException
MException
public void append(java.lang.String entry, java.lang.Object value) throws MException
append
in interface MProperties
entry
- can specify an attribute at any level in the tree.
See also Format of path Argument in the description of MProperties.get(String path, Object defaultValue)
value
- Value to add.MException
- on invalid entry format.public java.util.Enumeration elements(java.lang.String entry) throws MException
MProperties
The items are enumerated in the following order:
elements
in interface MProperties
MException
public java.lang.Object get(java.lang.String path) throws MException
MProperties
get
in interface MProperties
path
- can specify a property at any level
in the property tree. The syntax is as follows:
/foo|x/bar|y/baz
See also Format of path Argument in the description
of MProperties.get(String path, Object defaultValue)
MException
- on invalid entry format.public java.lang.Object get(java.lang.String path, boolean doSubstitution) throws MException
MProperties
get
in interface MProperties
path
- can specify a property at any level
in the property tree. The syntax is as follows:
/foo|x/bar|y/baz
doSubstitution
- If true then global variable substitution is done ,
otherwise no substitution is done.MException
- on invalid entry format.public int getCount(java.lang.String entry) throws MException
getCount
in interface MProperties
MException
- On invalid entry formatpublic java.lang.String getPath()
getPath
in interface MProperties
public MPropertiesRegistry getRegistry()
getRegistry
in interface MProperties
public boolean isChanged()
isChanged
in interface MProperties
MProperties.lock()
,
MPropertiesRegistry.newProperties(String)
public boolean isLinkChased()
MAbstractProperties
isLinkChased
in interface MProperties
isLinkChased
in class MAbstractProperties
public boolean isLocked()
MProperties
MProperties
instance is locked. Applications
can lock an MProperties
instance by calling the MProperties.lock()
method.isLocked
in interface MProperties
public boolean isWritable()
isWritable
in interface MProperties
public void lock() throws MException
lock
in interface MProperties
MException
MProperties.isLocked()
public void set(java.lang.String entry, java.lang.Object value) throws MException
set
in interface MProperties
MException
public void setLinkChased(boolean flag)
MAbstractProperties
setLinkChased
in interface MProperties
setLinkChased
in class MAbstractProperties
public java.lang.String toString()
toString
in class java.lang.Object
public void delete(java.lang.String entry) throws MException
MProperties
MProperties
instance if the instance was
created as a settable instance and it is not locked.delete
in interface MProperties
delete
in class MAbstractProperties
entry
- can specify an attribute at any level
in the tree. The syntax is as follows:
/foo|x/bar|y/baz
See also Format of path Argument in the description
of MProperties.get(String path, Object defaultValue)
MException