public class ArtifactType extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
static ArtifactType |
Document() |
static ArtifactType |
Document(String mimeType) |
boolean |
equals(Object obj) |
static ArtifactType |
ExtendedArtifactType(String extendedType) |
static ArtifactType |
ExtendedArtifactType(String extendedType,
boolean derived) |
static ArtifactType |
ExtendedDocument(String extendedType) |
ArtifactTypeEnum |
getArtifactType() |
String |
getExtendedType()
Gets the extended artifact type.
|
String |
getLabel() |
String |
getMimeType() |
String |
getModel() |
String |
getType() |
int |
hashCode() |
boolean |
isDerived() |
boolean |
isDocument() |
protected boolean |
isExtendedDerivedType() |
boolean |
isExtendedType() |
static boolean |
isValid(String artifactType)
Returns true if the given artifact type is valid.
|
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType |
newArtifactInstance()
Instantiates an S-RAMP artifact of the correct type, and populates the artifactType and the
contentType.
|
static ArtifactType |
PolicyDocument() |
void |
setArtifactType(ArtifactTypeEnum artifactType) |
void |
setExtendedDerivedType(boolean extendedDerivedType) |
void |
setExtendedType(String extendedType)
Sets the extended type.
|
void |
setMimeType(String mimeType) |
String |
toString() |
org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType |
unwrap(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Artifact artifactWrapper)
Called to unwrap the S-RAMP artifact from its wrapper.
|
static ArtifactType |
valueOf(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Artifact artifactWrapper,
String hint)
What kind of artifact is inside that wrapper?
|
static ArtifactType |
valueOf(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactEnum apiType)
Figures out the type from the s-ramp API type.
|
static ArtifactType |
valueOf(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact)
Figures out the type from the artifact instance.
|
static ArtifactType |
valueOf(String artifactType)
Figures out the artifact type (enum) from the given S-RAMP artifact type string.
|
static ArtifactType |
valueOf(String artifactType,
boolean isDocument) |
static ArtifactType |
valueOf(String model,
String type,
Boolean isDocument)
Determines the ArtifactType from the model and type.
|
static ArtifactType |
WsdlDocument() |
static ArtifactType |
XmlDocument() |
static ArtifactType |
XsdDocument() |
public static final boolean isValid(String artifactType)
artifactType
- the artifact typepublic static final ArtifactType Document()
public static final ArtifactType Document(String mimeType)
public static final ArtifactType XmlDocument()
public static final ArtifactType XsdDocument()
public static final ArtifactType WsdlDocument()
public static final ArtifactType PolicyDocument()
public static final ArtifactType ExtendedArtifactType(String extendedType)
public static final ArtifactType ExtendedArtifactType(String extendedType, boolean derived)
public static final ArtifactType ExtendedDocument(String extendedType)
public org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType unwrap(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Artifact artifactWrapper)
artifactWrapper
- the S-RAMP artifact wrapperpublic static ArtifactType valueOf(String artifactType)
artifactType
- public static ArtifactType valueOf(String artifactType, boolean isDocument)
public static ArtifactType valueOf(String model, String type, Boolean isDocument)
model
- - the model, for example core, xsd, wsdl, ext, etc.type
- - the type, for example XmlDocument, WsdlDocumentisDocument
- - this flag is taken into account ONLY when the model is 'ext',
in this case the 'type' can be ExtendedDocument,
ExtendedArtifactType, or a user defined value (for example 'SwitchYardApplication').
The flag 'isDocument' is required only if the type is user defined so it can
distinguish between an artifact with (true) or without (false) content.
If this is not known at the time of calling a value of null can be given which will
default the ArtifactType of ExtendedArtifactType.public static ArtifactType valueOf(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType artifact)
artifact
- public org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType newArtifactInstance()
artifactType
- public static ArtifactType valueOf(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactEnum apiType)
apiType
- public ArtifactTypeEnum getArtifactType()
public boolean isExtendedType()
ExtendedArtifactType
.public boolean isDocument()
public boolean isDerived()
public void setArtifactType(ArtifactTypeEnum artifactType)
artifactType
- the artifactType to setpublic String getModel()
public String getType()
public String getLabel()
public String getMimeType()
public void setMimeType(String mimeType)
mimeType
- the mimeType to setpublic String toString()
toString
in class Object
Object.toString()
public void setExtendedType(String extendedType)
extendedType
- public String getExtendedType()
public static ArtifactType valueOf(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.Artifact artifactWrapper, String hint)
artifactWrapper
- protected boolean isExtendedDerivedType()
public void setExtendedDerivedType(boolean extendedDerivedType)
extendedDerivedType
- the extendedDerivedType to setpublic int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2011–2015 JBoss, a division of Red Hat. All rights reserved.