| Constructor and Description | 
|---|
MappingImpl(java.lang.String name)  | 
MappingImpl(java.lang.String name,
           HubEntity entity)  | 
| Modifier and Type | Method and Description | 
|---|---|
Mapping | 
deserialize(com.fasterxml.jackson.databind.JsonNode json)
Deserializes a json response and applies it to this mapping 
 | 
java.lang.String | 
getDescription()
Returns a string description of what the mapping is/does 
 | 
java.lang.String | 
getLang()
Return the language key setting 
 | 
java.lang.String | 
getLanguage()
Deprecated.  
 | 
java.lang.String | 
getName()
Returns the name of the mapping as a string 
 | 
java.util.Map<java.lang.String,java.lang.String> | 
getNamespaces()
Gets the map of the namespaces for mapping 
 | 
java.util.HashMap<java.lang.String,com.fasterxml.jackson.databind.node.ObjectNode> | 
getProperties()
Gets the hashmap of the properties mapping 
 | 
java.lang.String | 
getSourceContext()
Returns the source context string for the mapping 
 | 
java.lang.String | 
getSourceURI()
Returns a URI of the mapping source document 
 | 
java.lang.String | 
getTargetEntityType()
Returns the IRI for the targeted entity type 
 | 
int | 
getVersion()
Returns the mapping version 
 | 
void | 
incrementVersion()
Automatically increments the version of the mapping by 1 
 | 
java.lang.String | 
serialize()
Serializes the mapping as a json string 
 | 
void | 
setDescription(java.lang.String description)
Set the description for the mapping 
 | 
void | 
setLang(java.lang.String lang)
*CAREFUL - DO NOT TOUCH IF YOU DON'T EXPLICITLY KNOW WHAT THIS VALUE REPRESENTS*
 Sets the language for the mapping to use for MarkLogic server 
 | 
void | 
setLanguage(java.lang.String language)
Deprecated.  
 | 
void | 
setName(java.lang.String name)
Sets the name of the mapping as a string 
 | 
void | 
setNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Sets the namespaces map for the mapping 
 | 
void | 
setProperties(java.util.HashMap<java.lang.String,com.fasterxml.jackson.databind.node.ObjectNode> properties)
Sets the properties hashmap for the mapping 
 | 
void | 
setSourceContext(java.lang.String sourceContext)
Sets the source context for the mapping 
 | 
void | 
setSourceURI(java.lang.String sourceURI)
Set the URI for the mapping source document 
 | 
void | 
setTargetEntityType(java.lang.String targetEntityType)
Setting the IRI for the target entity type 
 | 
void | 
setVersion(int version)
Sets the version for the mapping 
 | 
public MappingImpl(java.lang.String name)
public MappingImpl(java.lang.String name,
                   HubEntity entity)
public Mapping deserialize(com.fasterxml.jackson.databind.JsonNode json)
Mappingdeserialize in interface Mappingjson - - the jsonnode you want deserializedpublic java.util.Map<java.lang.String,java.lang.String> getNamespaces()
MappinggetNamespaces in interface Mappingpublic void setNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
MappingsetNamespaces in interface Mappingnamespaces - - map of namespace prefixes and their full URIs for the mappingpublic int getVersion()
MappinggetVersion in interface Mappingpublic void setVersion(int version)
MappingsetVersion in interface Mappingversion - - a whole integer representing the version of the mappingpublic java.util.HashMap<java.lang.String,com.fasterxml.jackson.databind.node.ObjectNode> getProperties()
MappinggetProperties in interface Mappingpublic void setProperties(java.util.HashMap<java.lang.String,com.fasterxml.jackson.databind.node.ObjectNode> properties)
MappingsetProperties in interface Mappingproperties - - hashmap of properties and their settings for the mappingpublic java.lang.String getName()
Mappingpublic void setName(java.lang.String name)
Mappingpublic java.lang.String getSourceContext()
MappinggetSourceContext in interface Mappingpublic void setSourceContext(java.lang.String sourceContext)
MappingsetSourceContext in interface MappingsourceContext - - the xpath to start the mapping from inside the root of the documentspublic java.lang.String getTargetEntityType()
MappinggetTargetEntityType in interface Mappingpublic void setTargetEntityType(java.lang.String targetEntityType)
MappingsetTargetEntityType in interface MappingtargetEntityType - - the IRI of the entity you want this mapping to usepublic java.lang.String getDescription()
MappinggetDescription in interface Mappingpublic void setDescription(java.lang.String description)
MappingsetDescription in interface Mappingdescription - - a short description of what this mapping's purpose ispublic java.lang.String getSourceURI()
MappinggetSourceURI in interface Mappingpublic void setSourceURI(java.lang.String sourceURI)
MappingsetSourceURI in interface MappingsourceURI - - a source URI@Deprecated public java.lang.String getLanguage()
MappinggetLanguage in interface Mapping@Deprecated public void setLanguage(java.lang.String language)
MappingsetLanguage in interface Mappinglanguage - - sets the language key for the server - don't modify please!public java.lang.String getLang()
Mappingpublic void setLang(java.lang.String lang)
Mappingpublic java.lang.String serialize()
Mappingpublic void incrementVersion()
MappingincrementVersion in interface Mapping