public class Resource
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
applicationId |
java.lang.String |
author |
java.lang.String |
converterClassId |
java.lang.String |
description |
java.util.List<KeyValue> |
keyValue |
java.lang.String |
name |
java.lang.String |
type |
Constructor and Description |
---|
Resource() |
Resource(Resource o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Resource.
|
static Resource |
fromString(java.lang.String s)
String representation of this Resource.
|
java.lang.String |
getApplicationId()
Application Id of the resource.
|
java.lang.String |
getAuthor()
Author of the resource.
|
java.lang.String |
getConverterClassId()
Converter Class Id.
|
java.lang.String |
getDescription()
Short description of the resource.
|
java.util.List<KeyValue> |
getKeyValue()
Configuration of the resource.
|
java.lang.String |
getName()
Name of the resource.
|
java.lang.String |
getType()
Type of the resource.
|
Resource |
makeCopy()
Creates and returns a deep copy of this Resource.
|
static Resource |
readFrom(java.io.InputStream is)
Read this Resource from an XML fragment.
|
void |
setApplicationId(java.lang.String applicationId)
Application Id of the resource.
|
void |
setAuthor(java.lang.String author)
Author of the resource.
|
void |
setConverterClassId(java.lang.String converterClassId)
Converter Class Id.
|
void |
setDescription(java.lang.String description)
Short description of the resource.
|
void |
setName(java.lang.String name)
Name of the resource.
|
void |
setType(java.lang.String type)
Type of the resource.
|
java.lang.String |
toString()
String representation of this Resource.
|
Resource |
withApplicationId(java.lang.String applicationId) |
Resource |
withAuthor(java.lang.String author) |
Resource |
withConverterClassId(java.lang.String converterClassId) |
Resource |
withDescription(java.lang.String description) |
Resource |
withKeyValue(java.util.Collection<KeyValue> __values) |
Resource |
withKeyValue(KeyValue... __values)
Configuration of the resource.
|
Resource |
withName(java.lang.String name) |
Resource |
withType(java.lang.String type) |
void |
writeTo(java.io.OutputStream os)
Write this Resource as an XML fragment
|
public java.util.List<KeyValue> keyValue
public java.lang.String name
public java.lang.String type
public java.lang.String description
public java.lang.String author
public java.lang.String applicationId
public java.lang.String converterClassId
public Resource()
public Resource(Resource o)
public java.util.List<KeyValue> getKeyValue()
public void setName(java.lang.String name)
public java.lang.String getName()
public Resource withName(java.lang.String name)
public void setType(java.lang.String type)
public java.lang.String getType()
public Resource withType(java.lang.String type)
public void setDescription(java.lang.String description)
public java.lang.String getDescription()
public Resource withDescription(java.lang.String description)
public void setAuthor(java.lang.String author)
public java.lang.String getAuthor()
public Resource withAuthor(java.lang.String author)
public void setApplicationId(java.lang.String applicationId)
public java.lang.String getApplicationId()
public Resource withApplicationId(java.lang.String applicationId)
public void setConverterClassId(java.lang.String converterClassId)
public java.lang.String getConverterClassId()
public Resource withConverterClassId(java.lang.String converterClassId)
public Resource makeCopy()
public static Resource 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 Resource 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.