Class BrowseMetadata
java.lang.Object
com.sas.services.information.browse.BrowseMetadata
- All Implemented Interfaces:
BrowseMetadataInterface,Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.sas.services.information.browse.BrowseMetadataInterface
CREATE_KEY, DESC_KEY, ISAFOLDER_KEY, ISENTITYKEY_KEY, KEYWORDS_KEY, MEMBERS_KEY, MODIFY_KEY, NAME_KEY, NATIVETYPE_KEY, PARENTTREE_KEY, REPOSID_KEY, SMARTCLASS_KEY, SMARTTYPE_KEY, SOFTWARETREES_KEY, SUBFOLDERS_KEY, TREES_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObjectget(String key) Get an arbitrary object from the map.longGet the date the metadata object was created.DateGet the date the metadata object was created.StringGet the object description.StringGet the Information Service entity key for this object.ListGet a List of Strings with the keywords that are associated with this object.ListGet the members if this is a folder.longGet the date the metadata object was most recently changed.DateGet the date the metadata object was most recently changed.StringgetName()Get the object name.StringGet the repository native type for this object.ListGet the list of parent objects.MapGet the Map with the raw data for this object.StringGet the object's repository ID.StringGet the "smart" type of this object.ListGet the subfolders if this is a folder.booleanReturns true if this object represents a folder in the metadata.StringtoString()Return a simple string representation of the object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
BrowseMetadata
public BrowseMetadata(Map rawData)
-
-
Method Details
-
getRawData
public Map getRawData()Description copied from interface:BrowseMetadataInterfaceGet the Map with the raw data for this object. This Map can be wrapped with a "smarter" object for accessing the data.- Specified by:
getRawDatain interfaceBrowseMetadataInterface- Returns:
- A map that represents simple attributes with String values, and associated objects as a List of Map objects.
-
get
public Object get(String key) Description copied from interface:BrowseMetadataInterfaceGet an arbitrary object from the map. This may be an attribute or an association. Attributes have String values, associations are represented by a List of BrowseMetadataInterface objects.- Specified by:
getin interfaceBrowseMetadataInterface- Parameters:
key- The name of the attribute or association.- Returns:
- A String representing an attribute value, or a List if key is an association.
-
getName
public String getName()Description copied from interface:BrowseMetadataInterfaceGet the object name.- Specified by:
getNamein interfaceBrowseMetadataInterface- Returns:
- The object name string.
-
getDescription
public String getDescription()Description copied from interface:BrowseMetadataInterfaceGet the object description.- Specified by:
getDescriptionin interfaceBrowseMetadataInterface- Returns:
- The object description string. An empty string will be returned rather than null if no description exists.
-
getCreateDate
public long getCreateDate()Description copied from interface:BrowseMetadataInterfaceGet the date the metadata object was created.- Specified by:
getCreateDatein interfaceBrowseMetadataInterface- Returns:
- A long representing the date and time the object was created.
-
getCreateDateAsDate
public Date getCreateDateAsDate()Description copied from interface:BrowseMetadataInterfaceGet the date the metadata object was created.- Specified by:
getCreateDateAsDatein interfaceBrowseMetadataInterface- Returns:
- A long representing the date and time the object was created.
-
getModifyDate
public long getModifyDate()Description copied from interface:BrowseMetadataInterfaceGet the date the metadata object was most recently changed.- Specified by:
getModifyDatein interfaceBrowseMetadataInterface- Returns:
- A long with the latest modification date and time for the object.
-
getModifyDateAsDate
public Date getModifyDateAsDate()Description copied from interface:BrowseMetadataInterfaceGet the date the metadata object was most recently changed.- Specified by:
getModifyDateAsDatein interfaceBrowseMetadataInterface- Returns:
- A long with the latest modification date and time for the object.
-
getKeywords
public List getKeywords()Description copied from interface:BrowseMetadataInterfaceGet a List of Strings with the keywords that are associated with this object.- Specified by:
getKeywordsin interfaceBrowseMetadataInterface- Returns:
- A List of String objects with the keywords.
-
getSmartType
public String getSmartType()Description copied from interface:BrowseMetadataInterfaceGet the "smart" type of this object. For instance, return "Report" rather than "Transformation". If the smart object type couldn't be determined, the string "Metadata" will be returned.- Specified by:
getSmartTypein interfaceBrowseMetadataInterface- Returns:
- The smart object type of this object.
-
getNativeType
public String getNativeType()Description copied from interface:BrowseMetadataInterfaceGet the repository native type for this object. For instance, "Transformation" rather than "Report".- Specified by:
getNativeTypein interfaceBrowseMetadataInterface- Returns:
- The repository specific type for this object.
-
getISEntityKey
public String getISEntityKey()Description copied from interface:BrowseMetadataInterfaceGet the Information Service entity key for this object. This key makes it easy to retrieve the "real" metadata object for this browse object so it can be updated.- Specified by:
getISEntityKeyin interfaceBrowseMetadataInterface- Returns:
- The Information Service entity key.
-
isAFolder
public boolean isAFolder()Description copied from interface:BrowseMetadataInterfaceReturns true if this object represents a folder in the metadata. For data in the SAS Metadata Server, being a folder doesn't necessarily imply that it's part of the BIP Tree hierarchy.- Specified by:
isAFolderin interfaceBrowseMetadataInterface- Returns:
- True if the object is a folder, false otherwise.
-
getMembers
public List getMembers()Description copied from interface:BrowseMetadataInterfaceGet the members if this is a folder.- Specified by:
getMembersin interfaceBrowseMetadataInterface- Returns:
- a List of BrowseMetadataInterface objects representing the members of the folder, or null if it's not a folder.
-
getParents
public List getParents()Description copied from interface:BrowseMetadataInterfaceGet the list of parent objects. This will either be the element(s) of the ParentTree association, if that's found, or the Trees asociation if that's found.- Specified by:
getParentsin interfaceBrowseMetadataInterface- Returns:
- A List of likely parent BrowseMetadataInterface objects. If none are found, an empty List is returned.
-
getSubfolders
public List getSubfolders()Description copied from interface:BrowseMetadataInterfaceGet the subfolders if this is a folder.- Specified by:
getSubfoldersin interfaceBrowseMetadataInterface- Returns:
- a List of BrowsemetadataInterface objects representing the subfolders of this folder, or null if it's not a folder.
-
getReposId
public String getReposId()Description copied from interface:BrowseMetadataInterfaceGet the object's repository ID. The id by itself may or may not be sufficient to actually retrieve the object from the repository, but it should at least be a unique identifier for the object within the repository. * @return The String representation of the repository identifier.- Specified by:
getReposIdin interfaceBrowseMetadataInterface
-
toString
public String toString()Description copied from interface:BrowseMetadataInterfaceReturn a simple string representation of the object.- Specified by:
toStringin interfaceBrowseMetadataInterface- Overrides:
toStringin classObject- Returns:
- A String object representing the metadata object.
-