public class XMLJavaAPI extends AbstractAPI
Modifier and Type | Field and Description |
---|---|
static short |
API_PATH_CLASS
The default value, only the class name is presented.
|
static short |
API_PATH_FULL
The full class path is presented.
|
static short |
API_PATH_MEMBER
Only the member is presented.
|
static short |
TYPE_CLASS
The default type, for class declarations.
|
static short |
TYPE_MODULE
The type for module declarations.
|
static short |
TYPE_PACKAGE
The type for package declarations.
|
altPath, altText, api, isResolved, location, member, path, text, url
isAbsolute, isValid
TYPE_NONE
Constructor and Description |
---|
XMLJavaAPI()
Create a Java API link to the default JavaSE API.
|
XMLJavaAPI(java.lang.String api)
Create a Java API link.
|
XMLJavaAPI(java.net.URL location)
Create a Java API link.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(java.net.URL url,
java.lang.String text,
java.lang.String altText,
boolean hasLibrary)
Bind the API path URL.
|
short |
getAPIPathType()
Return the API link path type presentation.
|
short |
getAPIType()
Return the type of the API.
|
java.lang.String |
getDeclaration()
Return the declaration ID of the element.
|
java.lang.String |
getModule()
Return the module.
|
java.lang.String |
getText()
Return the link description text.
|
boolean |
hasLibrary()
Return true if the Java API has a stored corresponding library.
|
boolean |
isAnyJDKAPI()
Return true if the API is a JDK API for Java 8 (JavaSE or JavaFX).
|
boolean |
isClassAPIType()
Return true if the API points to a class.
|
boolean |
isJDK8API()
Return true if the API is a JDK API for Java 8 (JavaSE or JavaFX).
|
boolean |
isResolved()
Return true if the API is resolved.
|
void |
setAPIPathType(short type)
Set if the API link path type presentation.
|
void |
setAPIType(short apiType)
Set the type of the API.
|
void |
setModule(java.lang.String module)
Set the module.
|
bind, bind, getAltPath, getAltText, getAPI, getAPILocation, getMember, getMemberPath, getPath, getShownPath, getURL, hasAPI, hasAPILocation, isConstructor, setAltPath, setConstructor, setMember, setMember, setPath
getCustomStyles, getLineNumber, isAbsolute, isValid, setCustomStyles, setLineNumber, setValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNotNullURL, getURLAsString, getURLAsString, getURLAsString
getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setInlinedStyle
hasLineNumber
public static final short API_PATH_CLASS
public static final short API_PATH_FULL
public static final short API_PATH_MEMBER
public static final short TYPE_CLASS
public static final short TYPE_PACKAGE
public static final short TYPE_MODULE
public XMLJavaAPI()
APIsSpecs.JAVADOC_SE
public XMLJavaAPI(java.lang.String api)
api
- the Java APIAPILocations.getJavaAPIs()
public XMLJavaAPI(java.net.URL location)
location
- the locationpublic java.lang.String getDeclaration()
public boolean isAnyJDKAPI()
public boolean isJDK8API()
public void setAPIType(short apiType)
TYPE_CLASS
: the default value, the API specifies a classTYPE_PACKAGE
: the API specifies a packageTYPE_MODULE
: the API specifies a moduleapiType
- the type of the APIpublic boolean isClassAPIType()
public short getAPIType()
public void setAPIPathType(short type)
API_PATH_CLASS
: the default value, only the class name is presentedAPI_PATH_FULL
: the full class path is presentedAPI_PATH_MEMBER
: only the member is presentedtype
- the API path typepublic short getAPIPathType()
setAPIPathType(short)
public void setModule(java.lang.String module)
module
- the modulepublic java.lang.String getModule()
public java.lang.String getText()
getText
in interface ExternalLink
getText
in class AbstractAPI
public boolean hasLibrary()
public boolean isResolved()
isResolved
in class AbstractAPI
public void bind(java.net.URL url, java.lang.String text, java.lang.String altText, boolean hasLibrary)
url
- the URLtext
- the textaltText
- the alt texthasLibrary
- true if the API has an associated libraryCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence