| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| SerializableStateHolder |
|
| 1.0;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 javax.faces.internal; | |
| 17 | ||
| 18 | import java.io.Serializable; | |
| 19 | import java.util.List; | |
| 20 | import java.util.Map; | |
| 21 | ||
| 22 | /** | |
| 23 | * @author shot | |
| 24 | * | |
| 25 | * This class might be changed without notice. Please do not use it | |
| 26 | * excluding the JSF specification part. | |
| 27 | */ | |
| 28 | public class SerializableStateHolder implements Serializable { | |
| 29 | ||
| 30 | private static final long serialVersionUID = 1L; | |
| 31 | ||
| 32 | 51 | private Object state = null; |
| 33 | ||
| 34 | 51 | private Map facetMap = null; |
| 35 | ||
| 36 | 51 | private List children = null; |
| 37 | ||
| 38 | 51 | public SerializableStateHolder(Object state, Map facetMap, List children) { |
| 39 | 51 | this.state = state; |
| 40 | 51 | this.facetMap = facetMap; |
| 41 | 51 | this.children = children; |
| 42 | 51 | } |
| 43 | ||
| 44 | public List getChildren() { | |
| 45 | 3 | return children; |
| 46 | } | |
| 47 | ||
| 48 | public Map getFacetMap() { | |
| 49 | 3 | return facetMap; |
| 50 | } | |
| 51 | ||
| 52 | public Object getState() { | |
| 53 | 5 | return state; |
| 54 | } | |
| 55 | ||
| 56 | } |