1 package org.simantics.plant3d.utils;
5 public enum Type{EQUIPMENT,INLINE,TURN,END,NOZZLE};
11 private boolean code = false;
12 private boolean variable = false;
13 private boolean modifiable = false;
14 private boolean sizeChange = false;
15 private boolean rotated = false;
18 public Item(String type, String name) {
25 public String getUri() {
29 public String getName() {
33 public Type getType() {
37 public void setType(Type type) {
41 public boolean isCode() {
45 public void setCode(boolean code) {
49 public boolean isVariable() {
53 public void setVariable(boolean variable) {
54 this.variable = variable;
57 public boolean isModifiable() {
61 public void setModifiable(boolean modifiable) {
62 this.modifiable = modifiable;
65 public boolean isSizeChange() {
69 public void setSizeChange(boolean sizeChange) {
70 this.sizeChange = sizeChange;
73 public boolean isRotated() {
77 public void setRotated(boolean rotated) {
78 this.rotated = rotated;
83 public boolean equals(Object obj) {
84 if (obj.getClass() != getClass())
86 return uri.equals(((Item)obj).uri);
90 public int hashCode() {
91 return uri.hashCode();