コード例 #1
0
ファイル: XConfigObject.java プロジェクト: kef/hieos
 /**
  * Fills in the instance from a given AXIOM node.
  *
  * @param rootNode Starting point.
  */
 protected void parse(OMElement rootNode, XConfig xconf) {
   OMElement node;
   this.name = rootNode.getAttributeValue(new QName("name"));
   this.type = rootNode.getAttributeValue(new QName("type"));
   node = rootNode.getFirstChildWithName(new QName("UniqueId"));
   if (node != null) {
     this.uniqueId = node.getText();
     if (this.uniqueId.equals("NA")) {
       this.uniqueId = null;
     }
   }
   parseObjectRefs(rootNode);
   properties.parse(rootNode);
 }
コード例 #2
0
ファイル: XConfigObject.java プロジェクト: kef/hieos
 /**
  * @param propKey The property key to find.
  * @return true if property key is found, false otherwise.
  */
 public boolean containsProperty(String propKey) {
   return properties.containsProperty(propKey);
 }
コード例 #3
0
ファイル: XConfigObject.java プロジェクト: kef/hieos
 /**
  * @param propKey
  * @return
  */
 public boolean getPropertyAsBoolean(String propKey) {
   return properties.getPropertyAsBoolean(propKey);
 }
コード例 #4
0
ファイル: XConfigObject.java プロジェクト: kef/hieos
 /**
  * @param propKey
  * @param defaultValue
  * @return
  */
 public boolean getPropertyAsBoolean(String propKey, boolean defaultValue) {
   return properties.getPropertyAsBoolean(propKey, defaultValue);
 }
コード例 #5
0
ファイル: XConfigObject.java プロジェクト: kef/hieos
 /**
  * @param propKey
  * @return
  */
 public String getProperty(String propKey) {
   return (String) properties.getProperty(propKey);
 }