com.atlassian.renderer.embedded
Class EmbeddedResourceParser

java.lang.Object
  extended by com.atlassian.renderer.embedded.EmbeddedResourceParser

public class EmbeddedResourceParser
extends Object

A parser for an embedded resource. Parsed format is as follows:

originalText = "resource|properties" resource = "url" | "internal" internal = "((spaceKey:)pageTitle^)attachment" properties = "property(, property)" property = "key" | "key=value"


Field Summary
protected static String UNKNOWN_IMAGE_MIME_TYPE
           
protected static String UNKNOWN_MIME_TYPE
           
 
Constructor Summary
EmbeddedResourceParser(String originalText)
           
 
Method Summary
 String getFilename()
           
 String getOriginalText()
           
 String getPage()
           
 Properties getProperties()
           
 String getResource()
           
 String getSpace()
           
 String getType()
           
 boolean isExternal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_MIME_TYPE

protected static final String UNKNOWN_MIME_TYPE
See Also:
Constant Field Values

UNKNOWN_IMAGE_MIME_TYPE

protected static final String UNKNOWN_IMAGE_MIME_TYPE
See Also:
Constant Field Values
Constructor Detail

EmbeddedResourceParser

public EmbeddedResourceParser(String originalText)
Method Detail

getOriginalText

public String getOriginalText()
See Also:
originalText

getResource

public String getResource()
See Also:
resource

getPage

public String getPage()
See Also:
page

getSpace

public String getSpace()
See Also:
space

getProperties

public Properties getProperties()
See Also:
properties

isExternal

public boolean isExternal()
See Also:
isExternal

getFilename

public String getFilename()
See Also:
filename

getType

public String getType()
See Also:
type


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.