本文整理汇总了Java中org.apache.batik.dom.util.HashTable.get方法的典型用法代码示例。如果您正苦于以下问题:Java HashTable.get方法的具体用法?Java HashTable.get怎么用?Java HashTable.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.batik.dom.util.HashTable
的用法示例。
在下文中一共展示了HashTable.get方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeEventListenerNS
import org.apache.batik.dom.util.HashTable; //导入方法依赖的package包/类
/**
* Deregisters an event listener.
*/
public void removeEventListenerNS(String namespaceURI,
String type,
EventListener listener,
boolean useCapture) {
HashTable listeners;
if (useCapture) {
listeners = capturingListeners;
} else {
listeners = bubblingListeners;
}
if (listeners == null) {
return;
}
EventListenerList list = (EventListenerList) listeners.get(type);
if (list != null) {
list.removeListener(namespaceURI, listener);
if (list.size() == 0) {
listeners.remove(type);
}
}
}
示例2: removeImplementationEventListenerNS
import org.apache.batik.dom.util.HashTable; //导入方法依赖的package包/类
/**
* Unregisters an implementation event listener.
*/
public void removeImplementationEventListenerNS(String namespaceURI,
String type,
EventListener listener,
boolean useCapture) {
HashTable listeners = useCapture ? capturingImplementationListeners
: bubblingImplementationListeners;
if (listeners == null) {
return;
}
EventListenerList list = (EventListenerList) listeners.get(type);
if (list == null) {
return;
}
list.removeListener(namespaceURI, listener);
if (list.size() == 0) {
listeners.remove(type);
}
}
示例3: getCSSStyleSheet
import org.apache.batik.dom.util.HashTable; //导入方法依赖的package包/类
/**
* Returns the associated style-sheet.
*/
public StyleSheet getCSSStyleSheet() {
if (styleSheet == null) {
HashTable attrs = getPseudoAttributes();
String type = (String)attrs.get("type");
if ("text/css".equals(type)) {
String title = (String)attrs.get("title");
String media = (String)attrs.get("media");
String href = (String)attrs.get("href");
String alternate = (String)attrs.get("alternate");
SVGOMDocument doc = (SVGOMDocument)getOwnerDocument();
ParsedURL durl = doc.getParsedURL();
ParsedURL burl = new ParsedURL(durl, href);
CSSEngine e = doc.getCSSEngine();
styleSheet = e.parseStyleSheet(burl, media);
styleSheet.setAlternate("yes".equals(alternate));
styleSheet.setTitle(title);
}
}
return styleSheet;
}
示例4: getApplicationList
import org.apache.batik.dom.util.HashTable; //导入方法依赖的package包/类
/**
* Transform detected app in the project into Application list by getting info in the Clever Cloud API.
*
* @param appList List of HashTable containing : {"AppID" => String, "Repository" => GitRepository}
* @return ArrayList containing {@link Application} of the current project
*/
@NotNull
public ArrayList<Application> getApplicationList(@NotNull List<HashTable> appList) {
ArrayList<Application> applicationList = new ArrayList<>();
CcApi ccApi = CcApi.getInstance(myProject);
for (HashTable app : appList) {
String response = ccApi.apiRequest(String.format("/self/applications/%s", app.get(AppInfos.APP_ID)));
if (response != null) {
ObjectMapper mapper = new ObjectMapper();
try {
Application application = mapper.readValue(response, Application.class);
application.deployment.repository = (String)app.get(AppInfos.REPOSITORY);
applicationList.add(application);
}
catch (IOException e) {
e.printStackTrace();
}
}
}
return applicationList;
}
示例5: getEventListeners
import org.apache.batik.dom.util.HashTable; //导入方法依赖的package包/类
/**
* Returns a list event listeners depending on the specified event
* type and phase.
* @param type the event type
* @param useCapture
*/
public EventListenerList getEventListeners(String type,
boolean useCapture) {
HashTable listeners
= useCapture ? capturingListeners : bubblingListeners;
if (listeners == null) {
return null;
}
return (EventListenerList) listeners.get(type);
}
示例6: extractXSLProcessingInstruction
import org.apache.batik.dom.util.HashTable; //导入方法依赖的package包/类
/**
* Extracts the first XSL processing instruction from the input
* XML document.
*/
protected String extractXSLProcessingInstruction(Document doc) {
Node child = doc.getFirstChild();
while (child != null) {
if (child.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE) {
ProcessingInstruction pi
= (ProcessingInstruction)child;
HashTable table = new HashTable();
DOMUtilities.parseStyleSheetPIData(pi.getData(),
table);
Object type = table.get(PSEUDO_ATTRIBUTE_TYPE);
if (XSL_PROCESSING_INSTRUCTION_TYPE.equals(type)) {
Object href = table.get(PSEUDO_ATTRIBUTE_HREF);
if (href != null) {
return href.toString();
} else {
return null;
}
}
}
child = child.getNextSibling();
}
return null;
}
示例7: if
import org.apache.batik.dom.util.HashTable; //导入方法依赖的package包/类
/**
* Returns the implementation listneers.
*/
public EventListenerList getImplementationEventListeners
(String type, boolean useCapture) {
HashTable listeners = useCapture ? capturingImplementationListeners
: bubblingImplementationListeners;
if (listeners == null) {
return null;
}
return (EventListenerList) listeners.get(type);
}