001/* 002 * ModeShape (http://www.modeshape.org) 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.modeshape.web.shared; 017 018import java.io.Serializable; 019 020/** 021 * Value object representing types; 022 * 023 * @author kulikov 024 */ 025public class JcrNodeType implements Serializable { 026 private static final long serialVersionUID = 1L; 027 private String name; 028 private boolean isPrimary; 029 private boolean isMixin; 030 private boolean isAbstract; 031 032 public JcrNodeType() { 033 } 034 035 public String getName() { 036 return name; 037 } 038 039 public boolean isPrimary() { 040 return isPrimary; 041 } 042 043 public boolean isMixin() { 044 return isMixin; 045 } 046 047 public boolean isAbstract() { 048 return isAbstract; 049 } 050 051 public void setName(String name) { 052 this.name = name; 053 } 054 055 public void setPrimary(boolean isPrimary) { 056 this.isPrimary = isPrimary; 057 } 058 059 public void setMixin(boolean isMixin) { 060 this.isMixin = isMixin; 061 } 062 063 public void setAbstract(boolean isAbstract) { 064 this.isAbstract = isAbstract; 065 } 066 067 068}