Coverage Report - org.seasar.teeda.core.application.TreeStructure
 
Classes in this File Line Coverage Branch Coverage Complexity
TreeStructure
100%
12/12
100%
4/4
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.teeda.core.application;
 17  
 
 18  
 import java.io.Serializable;
 19  
 
 20  
 /**
 21  
  * @author higa
 22  
  * @author shot
 23  
  */
 24  
 public class TreeStructure implements Serializable {
 25  
 
 26  
     private static final long serialVersionUID = 0L;
 27  
 
 28  
     private String componentClassName_;
 29  
 
 30  
     private String componentId_;
 31  
 
 32  
     private TreeStructure[] children_;
 33  
 
 34  
     private Object[] facets_;
 35  
 
 36  17
     public TreeStructure(String componentClassName, String componentId) {
 37  17
         componentClassName_ = componentClassName;
 38  17
         componentId_ = componentId;
 39  17
     }
 40  
 
 41  
     public String getComponentClassName() {
 42  12
         return componentClassName_;
 43  
     }
 44  
 
 45  
     public String getComponentId() {
 46  14
         return componentId_;
 47  
     }
 48  
 
 49  
     public TreeStructure[] getChildren() {
 50  6
         return (children_ != null) ? children_ : new TreeStructure[0];
 51  
     }
 52  
 
 53  
     public void setChildren(TreeStructure[] children) {
 54  11
         children_ = children;
 55  11
     }
 56  
 
 57  
     public Object[] getFacets() {
 58  6
         return (facets_ != null) ? facets_ : new Object[0];
 59  
     }
 60  
 
 61  
     public void setFacets(Object[] facets) {
 62  11
         facets_ = facets;
 63  11
     }
 64  
 }