de.micromata.opengis.kml.v_2_2_0
Class Alias

java.lang.Object
  extended by de.micromata.opengis.kml.v_2_2_0.AbstractObject
      extended by de.micromata.opengis.kml.v_2_2_0.Alias
All Implemented Interfaces:
java.lang.Cloneable

public class Alias
extends AbstractObject
implements java.lang.Cloneable

contains a mapping from a to a :

Specifies the texture file to be fetched by Google Earth. This reference can be a relative reference to an image file within the .kmz archive, or it can be an absolute reference to the file (for example, a URL). Is the path specified for the texture file in the Collada .dae file.


Field Summary
protected  java.util.List<AbstractObject> aliasObjectExtension
          
protected  java.util.List<java.lang.Object> aliasSimpleExtension
           
protected  java.lang.String sourceHref
          
protected  java.lang.String targetHref
           (required)
 
Fields inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
id, objectSimpleExtension, targetId
 
Constructor Summary
Alias()
           
 
Method Summary
 Alias addToAliasObjectExtension(AbstractObject aliasObjectExtension)
          add a value to the aliasObjectExtension property collection
 Alias addToAliasSimpleExtension(java.lang.Object aliasSimpleExtension)
          add a value to the aliasSimpleExtension property collection
 Alias addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
          add a value to the objectSimpleExtension property collection
 Alias clone()
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<AbstractObject> getAliasObjectExtension()
           
 java.util.List<java.lang.Object> getAliasSimpleExtension()
           
 java.lang.String getSourceHref()
           
 java.lang.String getTargetHref()
           
 int hashCode()
           
 void setAliasObjectExtension(java.util.List<AbstractObject> aliasObjectExtension)
           
 void setAliasSimpleExtension(java.util.List<java.lang.Object> aliasSimpleExtension)
           
 void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
           
 void setSourceHref(java.lang.String value)
           
 void setTargetHref(java.lang.String value)
           
 Alias withAliasObjectExtension(java.util.List<AbstractObject> aliasObjectExtension)
          fluent setter
 Alias withAliasSimpleExtension(java.util.List<java.lang.Object> aliasSimpleExtension)
          fluent setter
 Alias withId(java.lang.String id)
          fluent setter
 Alias withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
          fluent setter
 Alias withSourceHref(java.lang.String sourceHref)
          fluent setter
 Alias withTargetHref(java.lang.String targetHref)
          fluent setter
 Alias withTargetId(java.lang.String targetId)
          fluent setter
 
Methods inherited from class de.micromata.opengis.kml.v_2_2_0.AbstractObject
getId, getObjectSimpleExtension, getTargetId, setId, setTargetId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetHref

protected java.lang.String targetHref
(required)

A URL that specifies the .kml or .kmz file whose data (within Google Earth) is to be modified by an element. This KML file must already have been loaded via a . In that file, the element to be modified must already have an explicit id attribute defined for it.

Specifies the texture file to be fetched by Google Earth. This reference can be a relative reference to an image file within the .kmz archive, or it can be an absolute reference to the file (for example, a URL).


sourceHref

protected java.lang.String sourceHref

Specifies the texture file to be fetched by Google Earth. This reference can be a relative reference to an image file within the .kmz archive, or it can be an absolute reference to the file (for example, a URL). Is the path specified for the texture file in the Collada .dae file.

In Google Earth, if this mapping is not supplied, the following rules are used to locate the textures referenced in the Collada (.dae) file: No path: If the texture name does not include a path, Google Earth looks for the texture in the same directory as the .dae file that references it. Relative path: If the texture name includes a relative path (for example, ../images/mytexture.jpg), Google Earth interprets the path as being relative to the .dae file that references it. Absolute path: If the texture name is an absolute path (c:\mytexture.jpg) or a network path (for example, http://myserver.com/mytexture.jpg), Google Earth looks for the file in the specified location, regardless of where the .dae file is located.

Is the path specified for the texture file in the Collada .dae file.

Is the path specified for the texture file in the Collada .dae file.


aliasSimpleExtension

protected java.util.List<java.lang.Object> aliasSimpleExtension

aliasObjectExtension

protected java.util.List<AbstractObject> aliasObjectExtension

This is an abstract base class and cannot be used directly in a KML file. It provides the id attribute, which allows unique identification of a KML element, and the targetId attribute, which is used to reference objects that have already been loaded into Google Earth. The id attribute must be assigned if the mechanism is to be used.

Syntax:
<!-- abstract element; do not create -->
 <!-- Object id="ID" targetId="NCName" -->
 <!-- /Object> -->

Constructor Detail

Alias

public Alias()
Method Detail

getTargetHref

public java.lang.String getTargetHref()
Returns:
possible object is String
See Also:
targetHref

setTargetHref

public void setTargetHref(java.lang.String value)
Parameters:
value - allowed object is String
See Also:
targetHref

getSourceHref

public java.lang.String getSourceHref()
Returns:
possible object is String
See Also:
sourceHref

setSourceHref

public void setSourceHref(java.lang.String value)
Parameters:
value - allowed object is String
See Also:
sourceHref

getAliasSimpleExtension

public java.util.List<java.lang.Object> getAliasSimpleExtension()
See Also:
aliasSimpleExtension

getAliasObjectExtension

public java.util.List<AbstractObject> getAliasObjectExtension()
See Also:
aliasObjectExtension

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractObject

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class AbstractObject

setAliasSimpleExtension

public void setAliasSimpleExtension(java.util.List<java.lang.Object> aliasSimpleExtension)
Parameters:
aliasSimpleExtension -
See Also:
aliasSimpleExtension

addToAliasSimpleExtension

public Alias addToAliasSimpleExtension(java.lang.Object aliasSimpleExtension)
add a value to the aliasSimpleExtension property collection

Parameters:
aliasSimpleExtension - Objects of the following type are allowed in the list: Object
Returns:
true (as general contract of Collection.add).

setAliasObjectExtension

public void setAliasObjectExtension(java.util.List<AbstractObject> aliasObjectExtension)
Parameters:
aliasObjectExtension -
See Also:
aliasObjectExtension

addToAliasObjectExtension

public Alias addToAliasObjectExtension(AbstractObject aliasObjectExtension)
add a value to the aliasObjectExtension property collection

Parameters:
aliasObjectExtension - Objects of the following type are allowed in the list: AbstractObject
Returns:
true (as general contract of Collection.add).

setObjectSimpleExtension

public void setObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
Overrides:
setObjectSimpleExtension in class AbstractObject
See Also:
objectSimpleExtension

addToObjectSimpleExtension

public Alias addToObjectSimpleExtension(java.lang.Object objectSimpleExtension)
Description copied from class: AbstractObject
add a value to the objectSimpleExtension property collection

Overrides:
addToObjectSimpleExtension in class AbstractObject
Parameters:
objectSimpleExtension - Objects of the following type are allowed in the list: Object
Returns:
true (as general contract of Collection.add).

withTargetHref

public Alias withTargetHref(java.lang.String targetHref)
fluent setter

Parameters:
targetHref - required parameter
See Also:
setTargetHref(String)

withSourceHref

public Alias withSourceHref(java.lang.String sourceHref)
fluent setter

Parameters:
sourceHref - required parameter
See Also:
setSourceHref(String)

withAliasSimpleExtension

public Alias withAliasSimpleExtension(java.util.List<java.lang.Object> aliasSimpleExtension)
fluent setter

Parameters:
aliasSimpleExtension - required parameter
See Also:
#setAliasSimpleExtension(List)

withAliasObjectExtension

public Alias withAliasObjectExtension(java.util.List<AbstractObject> aliasObjectExtension)
fluent setter

Parameters:
aliasObjectExtension - required parameter
See Also:
#setAliasObjectExtension(List)

withObjectSimpleExtension

public Alias withObjectSimpleExtension(java.util.List<java.lang.Object> objectSimpleExtension)
Description copied from class: AbstractObject
fluent setter

Overrides:
withObjectSimpleExtension in class AbstractObject
Parameters:
objectSimpleExtension - required parameter
See Also:
#setObjectSimpleExtension(List)

withId

public Alias withId(java.lang.String id)
Description copied from class: AbstractObject
fluent setter

Overrides:
withId in class AbstractObject
Parameters:
id - required parameter
See Also:
AbstractObject.setId(String)

withTargetId

public Alias withTargetId(java.lang.String targetId)
Description copied from class: AbstractObject
fluent setter

Overrides:
withTargetId in class AbstractObject
Parameters:
targetId - required parameter
See Also:
AbstractObject.setTargetId(String)

clone

public Alias clone()
Overrides:
clone in class AbstractObject