public class VersionedResource
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
java.util.List<ResourceVersion> |
resourceVersion |
java.lang.String |
type |
Constructor and Description |
---|
VersionedResource() |
VersionedResource(VersionedResource o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this VersionedResource.
|
static VersionedResource |
fromString(java.lang.String s)
String representation of this VersionedResource.
|
java.lang.String |
getName()
Resource name
|
java.util.List<ResourceVersion> |
getResourceVersion() |
java.lang.String |
getType()
Resource type.
|
VersionedResource |
makeCopy()
Creates and returns a deep copy of this VersionedResource.
|
static VersionedResource |
readFrom(java.io.InputStream is)
Read this VersionedResource from an XML fragment.
|
void |
setName(java.lang.String name)
Resource name
|
void |
setType(java.lang.String type)
Resource type.
|
java.lang.String |
toString()
String representation of this VersionedResource.
|
VersionedResource |
withName(java.lang.String name) |
VersionedResource |
withResourceVersion(java.util.Collection<ResourceVersion> __values) |
VersionedResource |
withResourceVersion(ResourceVersion... __values) |
VersionedResource |
withType(java.lang.String type) |
void |
writeTo(java.io.OutputStream os)
Write this VersionedResource as an XML fragment
|
public java.util.List<ResourceVersion> resourceVersion
public java.lang.String name
public java.lang.String type
public VersionedResource()
public VersionedResource(VersionedResource o)
public java.util.List<ResourceVersion> getResourceVersion()
public VersionedResource withResourceVersion(ResourceVersion... __values)
public VersionedResource withResourceVersion(java.util.Collection<ResourceVersion> __values)
public void setName(java.lang.String name)
public java.lang.String getName()
public VersionedResource withName(java.lang.String name)
public void setType(java.lang.String type)
public java.lang.String getType()
public VersionedResource withType(java.lang.String type)
public VersionedResource makeCopy()
public static VersionedResource readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static VersionedResource fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.