public class SMAMetadata extends Object implements Comparable<SMAMetadata>
Constructor and Description |
---|
SMAMetadata(String extension,
String container,
String member,
String metadataType,
String path,
boolean destructible,
boolean valid,
boolean metaxml,
byte[] body)
Constructor for SMAMetadata object
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SMAMetadata comparison)
For sorting metadata by extension followed by member
|
static List<String> |
getApexClasses(List<SMAMetadata> contents)
Get all apex files in the provided list
|
byte[] |
getBody()
The blob data in String format of the metadata's content.
|
String |
getContainer()
Returns the parent container for this metadata file.
|
String |
getExtension()
Returns the extension for this metadata file.
|
String |
getFullName()
A toString() like method that returns a concatenation of the name and extension of the metadata object.
|
String |
getMember()
Returns the name of the metadata file.
|
String |
getMetadataType()
Returns the metadata type of this metadata file.
|
String |
getPath()
Returns the path of the metadata file.
|
boolean |
hasMetaxml()
Returns whether or not this metadata object has an accompanying -meta.xml file.
|
boolean |
isDestructible()
Returns whether or not this metadata object can be deleted using the Salesforce API.
|
boolean |
isValid()
Returns whether or not this metadata object is a valid member of the Salesforce API.
|
String |
toString() |
public SMAMetadata(String extension, String container, String member, String metadataType, String path, boolean destructible, boolean valid, boolean metaxml, byte[] body)
extension
- container
- member
- metadataType
- path
- destructible
- valid
- metaxml
- body
- public String getExtension()
public String getContainer()
public String getPath()
public String getMember()
public String getMetadataType()
public boolean isDestructible()
public boolean isValid()
public boolean hasMetaxml()
public String getFullName()
public byte[] getBody()
public int compareTo(SMAMetadata comparison)
compareTo
in interface Comparable<SMAMetadata>
comparison
- public static List<String> getApexClasses(List<SMAMetadata> contents)
contents
- Copyright © 2004-2016. All Rights Reserved.