public class ArtifactType extends Object
| Modifier and Type | Method and Description |
|---|---|
static ArtifactType |
Document() |
static ArtifactType |
Document(String mimeType) |
boolean |
equals(Object obj) |
static ArtifactType |
ExtendedArtifactType(String extendedType,
boolean derived) |
static ArtifactType |
ExtendedDocument(String extendedType) |
static ArtifactType |
fromFileExtension(String extension)
Deprecated.
|
ArtifactTypeEnum |
getArtifactType() |
String |
getExtendedType() |
String |
getLabel() |
String |
getMimeType() |
String |
getModel() |
String |
getType() |
int |
hashCode() |
boolean |
isDerived() |
protected boolean |
isExtendedDerivedType() |
boolean |
isExtendedType() |
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) |
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 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 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, 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 fromFileExtension(String extension)
ArtifactType given a common file extension.extension - a file extensionpublic static ArtifactType valueOf(String artifactType)
artifactType - 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 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 ObjectObject.toString()public void setExtendedType(String 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 ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)Copyright © 2011-2014 JBoss, a division of Red Hat. All Rights Reserved.