public class AnnotationManager extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
java.util.List<AnnotationManagerOperation> |
annotationManagerOperation |
static boolean |
DEFAULT_ENABLE_REGEXP |
static boolean |
DEFAULT_IGNORE_INVALID_OPERATIONS |
boolean |
enableRegexp |
boolean |
ignoreInvalidOperations |
java.lang.String |
resourceFile |
contexts, name, src
Constructor and Description |
---|
AnnotationManager() |
AnnotationManager(AnnotationManager o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SemanticProcessor.Transformer<T> transformer,
T[] t) |
void |
accept(SemanticProcessor.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this AnnotationManager.
|
static AnnotationManager |
fromString(java.lang.String s)
String representation of this AnnotationManager.
|
java.util.List<AnnotationManagerOperation> |
getAnnotationManagerOperation()
List of operations on annotations
|
java.lang.String |
getResourceFile()
URL for the resource (data://, file:// or resource:// )
|
boolean |
isEnableRegexp()
If true, annotation names are interpreted as Perl-5 regular expressions and expanded during processor initialization.
|
boolean |
isIgnoreInvalidOperations()
Ignore invalid operations (eg.
|
AnnotationManager |
makeCopy()
Creates and returns a deep copy of this AnnotationManager.
|
static AnnotationManager |
readFrom(java.io.InputStream is)
Read this AnnotationManager from an XML fragment.
|
void |
setEnableRegexp(boolean enableRegexp)
If true, annotation names are interpreted as Perl-5 regular expressions and expanded during processor initialization.
|
void |
setIgnoreInvalidOperations(boolean ignoreInvalidOperations)
Ignore invalid operations (eg.
|
void |
setResourceFile(java.lang.String resourceFile)
URL for the resource (data://, file:// or resource:// )
|
java.lang.String |
toString()
String representation of this AnnotationManager.
|
AnnotationManager |
withAnnotationManagerOperation(AnnotationManagerOperation... __values)
List of operations on annotations
|
AnnotationManager |
withAnnotationManagerOperation(java.util.Collection<AnnotationManagerOperation> __values) |
AnnotationManager |
withContexts(java.lang.String contexts) |
AnnotationManager |
withEnableRegexp(boolean enableRegexp) |
AnnotationManager |
withEnableRegexp(java.lang.Boolean enableRegexp) |
AnnotationManager |
withIgnoreInvalidOperations(boolean ignoreInvalidOperations) |
AnnotationManager |
withIgnoreInvalidOperations(java.lang.Boolean ignoreInvalidOperations) |
AnnotationManager |
withName(java.lang.String name) |
AnnotationManager |
withResourceFile(java.lang.String resourceFile) |
AnnotationManager |
withSrc(java.lang.String src)
Deprecated.
|
void |
writeTo(java.io.OutputStream os)
Write this AnnotationManager as an XML fragment
|
getContexts, getName, getSrc, setContexts, setName, setSrc
public java.lang.String resourceFile
public java.util.List<AnnotationManagerOperation> annotationManagerOperation
public boolean ignoreInvalidOperations
public static final boolean DEFAULT_IGNORE_INVALID_OPERATIONS
public boolean enableRegexp
public static final boolean DEFAULT_ENABLE_REGEXP
public AnnotationManager()
public AnnotationManager(AnnotationManager o)
public AnnotationManager withName(java.lang.String name)
withName
in class SemanticProcessor
public AnnotationManager withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
@Deprecated public AnnotationManager withSrc(java.lang.String src)
withSrc
in class SemanticProcessor
public void setResourceFile(java.lang.String resourceFile)
public java.lang.String getResourceFile()
public AnnotationManager withResourceFile(java.lang.String resourceFile)
public java.util.List<AnnotationManagerOperation> getAnnotationManagerOperation()
public AnnotationManager withAnnotationManagerOperation(AnnotationManagerOperation... __values)
public AnnotationManager withAnnotationManagerOperation(java.util.Collection<AnnotationManagerOperation> __values)
public void setIgnoreInvalidOperations(boolean ignoreInvalidOperations)
public boolean isIgnoreInvalidOperations()
public AnnotationManager withIgnoreInvalidOperations(boolean ignoreInvalidOperations)
public AnnotationManager withIgnoreInvalidOperations(java.lang.Boolean ignoreInvalidOperations)
public void setEnableRegexp(boolean enableRegexp)
public boolean isEnableRegexp()
public AnnotationManager withEnableRegexp(boolean enableRegexp)
public AnnotationManager withEnableRegexp(java.lang.Boolean enableRegexp)
public AnnotationManager makeCopy()
makeCopy
in class SemanticProcessor
public static AnnotationManager readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SemanticProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static AnnotationManager fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SemanticProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SemanticProcessor
com.exalead.util.TypedException
public void accept(SemanticProcessor.Visitor visitor) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
public <T> T accept(SemanticProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.