diff options
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest')
15 files changed, 739 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/OrcsWriterEndpoint.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/OrcsWriterEndpoint.java index ad2ea2d9171..a64b8470939 100644 --- a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/OrcsWriterEndpoint.java +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/OrcsWriterEndpoint.java @@ -18,8 +18,8 @@ import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.apache.cxf.jaxrs.ext.multipart.Attachment; -import org.eclipse.osee.orcs.writer.model.config.OrcsWriterInputConfig; -import org.eclipse.osee.orcs.writer.model.reader.OwCollector; +import org.eclipse.osee.orcs.rest.model.writer.config.OrcsWriterInputConfig; +import org.eclipse.osee.orcs.rest.model.writer.reader.OwCollector; /** * @author Donald G. dunne diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/OrcsWriterToken.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/OrcsWriterToken.java new file mode 100644 index 00000000000..596b4face84 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/OrcsWriterToken.java @@ -0,0 +1,40 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OrcsWriterToken { + + private Long uuid; + private String name; + + public Long getUuid() { + return uuid; + } + + public void setUuid(Long uuid) { + this.uuid = uuid; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/config/OrcsWriterInputConfig.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/config/OrcsWriterInputConfig.java new file mode 100644 index 00000000000..d28b977d743 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/config/OrcsWriterInputConfig.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.config; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlRootElement; +import org.eclipse.osee.orcs.rest.model.writer.OrcsWriterToken; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OrcsWriterInputConfig { + + private final List<Long> includeArtifactTypes = new ArrayList<>(); + private final List<Long> includeAttributeTypes = new ArrayList<>(); + private final List<OrcsWriterRelationSide> includeRelationSideTypes = new ArrayList<>(); + private final List<OrcsWriterToken> includeTokens = new ArrayList<>(); + + public List<Long> getIncludeArtifactTypes() { + return includeArtifactTypes; + } + + public List<Long> getIncludeAttributeTypes() { + return includeAttributeTypes; + } + + public List<OrcsWriterRelationSide> getIncludeRelationTypes() { + return includeRelationSideTypes; + } + + public List<OrcsWriterToken> getIncludeTokens() { + return includeTokens; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/config/OrcsWriterRelationSide.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/config/OrcsWriterRelationSide.java new file mode 100644 index 00000000000..9f637d9a8ed --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/config/OrcsWriterRelationSide.java @@ -0,0 +1,40 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.config; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OrcsWriterRelationSide { + + private Long relationTypeUuid; + private boolean sideA; + + public Long getRelationTypeUuid() { + return relationTypeUuid; + } + + public void setRelationTypeUuid(Long relationTypeUuid) { + this.relationTypeUuid = relationTypeUuid; + } + + public boolean isSideA() { + return sideA; + } + + public void setSideA(boolean sideA) { + this.sideA = sideA; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifact.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifact.java new file mode 100644 index 00000000000..e2772abc784 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifact.java @@ -0,0 +1,71 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import java.util.LinkedList; +import java.util.List; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwArtifact extends OwBase { + + OwArtifactType type; + String name; + List<OwAttribute> attributes; + List<OwRelation> relations; + + public OwArtifactType getType() { + return type; + } + + public void setType(OwArtifactType type) { + this.type = type; + } + + public List<OwAttribute> getAttributes() { + if (attributes == null) { + attributes = new LinkedList<>(); + } + return attributes; + } + + public void setAttributes(List<OwAttribute> attributes) { + this.attributes = attributes; + } + + public List<OwRelation> getRelations() { + if (relations == null) { + relations = new LinkedList<>(); + } + return relations; + } + + public void setRelations(List<OwRelation> relations) { + this.relations = relations; + } + + @Override + public String toString() { + return "OwArtifact [type=" + type + ", uuid=" + uuid + ", data=" + data + "]"; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifactToken.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifactToken.java new file mode 100644 index 00000000000..bb8d7b1b8b3 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifactToken.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwArtifactToken extends OwNamedBase { + + @Override + public String toString() { + return "OwArtifactToken [uuid=" + uuid + ", data=" + data + "]"; + } +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifactType.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifactType.java new file mode 100644 index 00000000000..ebbd3453000 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwArtifactType.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwArtifactType extends OwNamedBase { + + @Override + public String toString() { + return "OwArtifactType [uuid=" + uuid + ", data=" + data + "]"; + } +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwAttribute.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwAttribute.java new file mode 100644 index 00000000000..56f3d6cc727 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwAttribute.java @@ -0,0 +1,59 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import java.util.LinkedList; +import java.util.List; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwAttribute { + + public OwAttributeType type; + public List<Object> values; + public String data; + + public OwAttributeType getType() { + return type; + } + + public void setType(OwAttributeType type) { + this.type = type; + } + + public List<Object> getValues() { + if (values == null) { + values = new LinkedList<>(); + } + return values; + } + + public void setValues(List<Object> values) { + this.values = values; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + @Override + public String toString() { + return "OwAttribute [type=" + type + ", values=" + values + ", data=" + data + "]"; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwAttributeType.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwAttributeType.java new file mode 100644 index 00000000000..e232c3dd7bc --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwAttributeType.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwAttributeType extends OwNamedBase { + + @Override + public String toString() { + return "OwAttributeType [uuid=" + uuid + ", data=" + data + "]"; + } +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwBase.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwBase.java new file mode 100644 index 00000000000..8bdddca9b58 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwBase.java @@ -0,0 +1,86 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import javax.xml.bind.annotation.XmlRootElement; +import org.codehaus.jackson.map.annotate.JsonSerialize; +import org.codehaus.jackson.map.ser.std.ToStringSerializer; +import org.eclipse.osee.framework.jdk.core.type.UuidBaseIdentity; +import org.eclipse.osee.framework.jdk.core.type.UuidIdentity; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwBase implements UuidIdentity { + + @JsonSerialize(using = ToStringSerializer.class) + long uuid = 0L; + String data = null; + + @Override + public Long getUuid() { + return uuid; + } + + public boolean uuidIsSet() { + return uuid != 0L; + } + + public void setUuid(long uuid) { + this.uuid = uuid; + } + + @Override + public boolean matches(UuidIdentity... identities) { + for (UuidIdentity identity : identities) { + if (equals(identity)) { + return true; + } + } + return false; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + (int) (uuid ^ uuid >>> 32); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + UuidBaseIdentity other = (UuidBaseIdentity) obj; + if (other.getUuid().equals(uuid)) { + return false; + } + return true; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwBranch.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwBranch.java new file mode 100644 index 00000000000..74cb5cc0157 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwBranch.java @@ -0,0 +1,25 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwBranch extends OwNamedBase { + + @Override + public String toString() { + return "OwBranch [uuid=" + uuid + ", data=" + data + "]"; + } +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwCollector.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwCollector.java new file mode 100644 index 00000000000..b2d74ddf487 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwCollector.java @@ -0,0 +1,166 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import java.util.LinkedList; +import java.util.List; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwCollector { + + private String instructions; + private OwBranch branch; + private String persistComment; + private String asUserId; + private List<OwArtifact> create; + private List<OwArtifact> update; + private List<OwArtifactToken> delete; + private List<OwArtifactType> artTypes; + private List<OwAttributeType> attrTypes; + private List<OwRelationType> relTypes; + private List<OwBranch> branches; + private List<OwArtifactToken> artTokens; + + public OwCollector() { + create = new LinkedList<>(); + branch = new OwBranch(); + } + + public List<OwArtifact> getCreate() { + if (create == null) { + create = new LinkedList<>(); + } + return create; + } + + public void setCreate(List<OwArtifact> artifacts) { + this.create = artifacts; + } + + public List<OwArtifactType> getArtTypes() { + if (artTypes == null) { + artTypes = new LinkedList<>(); + } + return artTypes; + } + + public void setArtTypes(List<OwArtifactType> artTypes) { + this.artTypes = artTypes; + } + + public List<OwAttributeType> getAttrTypes() { + if (attrTypes == null) { + attrTypes = new LinkedList<>(); + } + return attrTypes; + } + + public void setAttrTypes(List<OwAttributeType> attrTypes) { + this.attrTypes = attrTypes; + } + + public List<OwRelationType> getRelTypes() { + if (relTypes == null) { + relTypes = new LinkedList<>(); + } + return relTypes; + } + + public void setRelTypes(List<OwRelationType> relTypes) { + this.relTypes = relTypes; + } + + public List<OwArtifactToken> getArtTokens() { + if (artTokens == null) { + artTokens = new LinkedList<>(); + } + return artTokens; + } + + public void setArtTokens(List<OwArtifactToken> artTokens) { + this.artTokens = artTokens; + } + + public List<OwArtifact> getUpdate() { + if (update == null) { + update = new LinkedList<>(); + } + return update; + } + + public void setUpdate(List<OwArtifact> update) { + this.update = update; + } + + public List<OwArtifactToken> getDelete() { + if (delete == null) { + delete = new LinkedList<>(); + } + return delete; + } + + public void setDelete(List<OwArtifactToken> delete) { + this.delete = delete; + } + + public OwBranch getBranch() { + return branch; + } + + public void setBranch(OwBranch branch) { + this.branch = branch; + } + + public List<OwBranch> getBranches() { + if (branches == null) { + branches = new LinkedList<>(); + } + return branches; + } + + public void setBranches(List<OwBranch> branches) { + this.branches = branches; + } + + public String getInstructions() { + return instructions; + } + + public void setInstructions(String instructions) { + this.instructions = instructions; + } + + @Override + public String toString() { + return "OwCollector [branch=" + branch + ", create=" + create + ", update=" + update + ", delete=" + delete + "]"; + } + + public String getPersistComment() { + return persistComment; + } + + public void setPersistComment(String persistComment) { + this.persistComment = persistComment; + } + + public String getAsUserId() { + return asUserId; + } + + public void setAsUserId(String asUserId) { + this.asUserId = asUserId; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwNamedBase.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwNamedBase.java new file mode 100644 index 00000000000..530abfeb011 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwNamedBase.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import org.eclipse.osee.framework.jdk.core.type.Named; + +/** + * @author Donald G. Dunne + */ +public class OwNamedBase extends OwBase implements Named { + + private String name; + + @Override + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwRelation.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwRelation.java new file mode 100644 index 00000000000..3f7ef4307ca --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwRelation.java @@ -0,0 +1,54 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwRelation { + + public OwRelationType type; + public OwArtifactToken artToken; + public String data; + + public OwRelationType getType() { + return type; + } + + public void setType(OwRelationType type) { + this.type = type; + } + + public OwArtifactToken getArtToken() { + return artToken; + } + + public void setArtToken(OwArtifactToken artToken) { + this.artToken = artToken; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + @Override + public String toString() { + return "OwRelation [type=" + type + ", artToken=" + artToken + ", data=" + data + "]"; + } + +} diff --git a/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwRelationType.java b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwRelationType.java new file mode 100644 index 00000000000..d93cbb82842 --- /dev/null +++ b/plugins/org.eclipse.osee.orcs.rest.model/src/org/eclipse/osee/orcs/rest/model/writer/reader/OwRelationType.java @@ -0,0 +1,45 @@ +/******************************************************************************* + * Copyright (c) 2015 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.orcs.rest.model.writer.reader; + +import javax.xml.bind.annotation.XmlRootElement; + +/** + * @author Donald G. Dunne + */ +@XmlRootElement +public class OwRelationType extends OwNamedBase { + + private boolean sideA; + private String sideName; + + public boolean isSideA() { + return sideA; + } + + public void setSideA(boolean sideA) { + this.sideA = sideA; + } + + public String getSideName() { + return sideName; + } + + public void setSideName(String sideName) { + this.sideName = sideName; + } + + @Override + public String toString() { + return "OwRelationType [sideA=" + sideA + ", sideName=" + sideName + ", uuid=" + uuid + ", data=" + data + "]"; + } + +} |