📄 descriptorstrategy.java
字号:
/**
* Copyright (c) 2002, Siddhartha P. Chandurkar siddhartha@visioncodified.com
* All rights reserved.
* Licensed under the Academic Free License version 1.1
* See the file LICENSE.TXT for details.
* LICENSE.txt is located in the directory <install-directory>\Jenerator
* of your Jenertaor Installation.
*
*/
package com.jenerator.transformer;
/**
*
*
* @author Siddhartha P. Chandurkar
* @version 0.9.0
*/
public abstract class DescriptorStrategy extends TransformStrategy {
/**
* An utility function which removes the XML prolog i.e. <code><?xml version='1.0'?></code>.
*/
protected String removeProlog(String _xml) {
return _xml.substring("<?xml version='1.0'?>".length());
}
/**
* This is an abstract method which each class which extends from this
* class has to override. This method cordinates the transformation
* of XML to code using appropriate templates
* @exception TransformFailedExceptoin The transformation from XML to code
* code has failed
*/
public abstract void transform() throws TransformFailedException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -