| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| StyleContract | 
  | 
  | 1.0;1 | 
| 1 |  /* | |
| 2 |   * Copyright 2011 The Kuali Foundation | |
| 3 |   * | |
| 4 |   * Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php | |
| 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, either express or implied. | |
| 13 |   * See the License for the specific language governing permissions and | |
| 14 |   * limitations under the License. | |
| 15 |   */ | |
| 16 |  package org.kuali.rice.core.api.style; | |
| 17 | ||
| 18 |  import org.kuali.rice.core.api.mo.GloballyUnique; | |
| 19 |  import org.kuali.rice.core.api.mo.Versioned; | |
| 20 | ||
| 21 |  /** | |
| 22 |   * This is the contract for a Style.  A style represents a stylesheet that is used for transforming data from | |
| 23 |   * one format to another (currently only XSL is supported). | |
| 24 |   *  | |
| 25 |   * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 26 |   * | |
| 27 |   */ | |
| 28 | public interface StyleContract extends Versioned, GloballyUnique {  | |
| 29 | ||
| 30 |          /** | |
| 31 |           * Returns the identifier of this style.  Should only return null if this | |
| 32 |           * style has not been persisted to a data repository yet.  Each | |
| 33 |           * individual style should have a unique identifier. | |
| 34 |           *  | |
| 35 |           * @return the id of this style, or null if it has not yet been set | |
| 36 |           */ | |
| 37 | Long getStyleId();  | |
| 38 | ||
| 39 |          /** | |
| 40 |           * Returns the name of this style.  All styles have a name and this value | |
| 41 |           * can never be null or blank.  The name must be unique within the entire | |
| 42 |           * repository of existing styles. | |
| 43 |           *  | |
| 44 |           * @return the name of this style | |
| 45 |           */ | |
| 46 | String getName();  | |
| 47 | ||
| 48 |          /** | |
| 49 |           * Returns the XML definition of this style as a String. | |
| 50 |           *  | |
| 51 |           * @return the xml definition of this style | |
| 52 |           */ | |
| 53 | String getXmlContent();  | |
| 54 | ||
| 55 |          /** | |
| 56 |           * Returns whether or not this style is active. | |
| 57 |           *  | |
| 58 |           * @return true if this style is active, false otherwise | |
| 59 |           */ | |
| 60 |          boolean isActive(); | |
| 61 | ||
| 62 | ||
| 63 | }  |