1 package org.simantics.plant3d.utils;
5 public enum Type{EQUIPMENT,INLINE,TURN,END,NOZZLE};
12 private boolean code = false;
13 private boolean variable = false;
14 private boolean modifiable = false;
15 private boolean sizeChange = false;
16 private boolean rotated = false;
19 public Item(String type, String name) {
24 public Item(String type, String name, String label) {
30 public String getUri() {
34 public String getName() {
38 public Type getType() {
42 public void setType(Type type) {
46 public boolean isCode() {
50 public void setCode(boolean code) {
54 public boolean isVariable() {
58 public void setVariable(boolean variable) {
59 this.variable = variable;
62 public boolean isModifiable() {
66 public void setModifiable(boolean modifiable) {
67 this.modifiable = modifiable;
70 public boolean isSizeChange() {
74 public void setSizeChange(boolean sizeChange) {
75 this.sizeChange = sizeChange;
78 public boolean isRotated() {
82 public void setRotated(boolean rotated) {
83 this.rotated = rotated;
88 public boolean equals(Object obj) {
89 if (obj.getClass() != getClass())
91 return uri.equals(((Item)obj).uri);
95 public int hashCode() {
96 return uri.hashCode();
99 public String getLabel() {