com.bigllc.retsiq.metadata
Class MetadataTypeUtil

java.lang.Object
  extended by com.bigllc.retsiq.metadata.MetadataTypeUtil

public class MetadataTypeUtil
extends java.lang.Object

Utility class for working with metadata types.

Author:
Marc G. Smith

Constructor Summary
MetadataTypeUtil()
           
 
Method Summary
static MetadataTableMap createNode(com.bigllc.retsiq.api.RETSConstants.MetadataType type, java.util.Map<java.lang.String,java.lang.String> map)
           
static MetadataTableMap createNode(com.bigllc.retsiq.api.RETSConstants.MetadataType type, java.lang.String name)
           
static java.lang.Class<? extends MetadataTableMap> getModelClassForType(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
          Get the model class type for a metadata type enumeration.
static java.lang.String getStandardNodeName(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
           
static java.util.List<com.bigllc.retsiq.api.RETSConstants.MetadataType> getTypePath(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
          For a given type a list is returned of the heirarchy to get to that type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataTypeUtil

public MetadataTypeUtil()
Method Detail

getTypePath

public static final java.util.List<com.bigllc.retsiq.api.RETSConstants.MetadataType> getTypePath(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
For a given type a list is returned of the heirarchy to get to that type.

Parameters:
type - the type
Returns:
a list of types that lead and including the type

getModelClassForType

public static final java.lang.Class<? extends MetadataTableMap> getModelClassForType(com.bigllc.retsiq.api.RETSConstants.MetadataType type)
Get the model class type for a metadata type enumeration.

Parameters:
type - the metadata type
Returns:
the class for the type or null if no match found

getStandardNodeName

public static java.lang.String getStandardNodeName(com.bigllc.retsiq.api.RETSConstants.MetadataType type)

createNode

public static MetadataTableMap createNode(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
                                          java.util.Map<java.lang.String,java.lang.String> map)

createNode

public static MetadataTableMap createNode(com.bigllc.retsiq.api.RETSConstants.MetadataType type,
                                          java.lang.String name)