|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
public class Descriptor
Descriptor is the root class for all objects representing deployment information in J2EE. Descriptors notifiy listeners of state changes, and have a name, description, and icons.
| Field Summary | |
|---|---|
static java.lang.String |
DESCRIPTION_CHANGED
|
static java.lang.String |
DESCRIPTOR_CHANGED
Notification String for a general descriptor change. |
java.lang.String |
docType
|
static java.lang.String |
LARGE_ICON_CHANGED
|
static java.lang.String |
NAME_CHANGED
|
static java.lang.String |
SMALL_ICON_CHANGED
|
| Constructor Summary | |
|---|---|
|
Descriptor()
The default constructor. |
protected |
Descriptor(Descriptor other)
The copy constructor. |
|
Descriptor(java.lang.String name,
java.lang.String description)
Constructs a descriptor with given name, description. |
| Method Summary | |
|---|---|
void |
addDeploymentExtension(DeploymentExtensionDescriptor de)
Add a new deployment-extension for this descriptor |
void |
addPrefixMapping(java.lang.String mapping,
java.lang.String uri)
add a prefix mapping |
static java.lang.String |
createUniqueFilenameAmongst(java.lang.String trialName,
java.util.Vector<java.lang.String> otherNames)
Returns String based on the trial name that is guaramteed to be different from any of the strings in the vector of String names. |
static java.lang.String |
createUniqueNameAmongst(java.lang.String trialName,
java.util.Vector<java.lang.String> otherNames)
Returns String based on the trial name that is guaramteed to be different from any of the strings in the vector of String names. |
static java.lang.String |
createUniqueNameAmongstNamedDescriptors(java.lang.String trialName,
java.util.Set<? extends Descriptor> descriptors)
Returns String based on the trial name that is guaramteed to be different from any of the strings returnsed by the getName() call in any of the Descriptor objects in the Set supplied. |
void |
fillDocType(java.io.InputStream in)
|
java.util.Iterator |
getDeploymentExtensions()
|
java.lang.String |
getDescription()
The description text of this descriptor as a String. |
java.lang.String |
getDisplayName()
|
java.lang.String |
getDocType()
|
java.lang.String |
getLargeIconUri()
The large icon name of this descriptor as a String. |
java.lang.String |
getLocalizedDescription(java.lang.String lang)
|
java.util.Map<? extends java.lang.String,? extends java.lang.String> |
getLocalizedDescriptions()
|
java.lang.String |
getLocalizedDisplayName(java.lang.String language)
|
java.util.Map<? extends java.lang.String,? extends java.lang.String> |
getLocalizedDisplayNames()
|
java.lang.String |
getLocalizedLargeIconUri(java.lang.String lang)
|
java.util.Map |
getLocalizedLargeIconUris()
|
java.lang.String |
getLocalizedSmallIconUri(java.lang.String lang)
|
java.util.Map<? extends java.lang.String,? extends java.lang.String> |
getLocalizedSmallIconUris()
|
java.lang.String |
getName()
The name of this descriptor as a String. |
java.util.Map<java.lang.String,java.lang.String> |
getPrefixMapping()
|
java.lang.String |
getSmallIconUri()
The small icon name of this descriptor as a String. |
static boolean |
isBoundsChecking()
Answers whether the object model is bounds checking. |
void |
print(java.lang.StringBuffer sb)
A String representation of this object. |
static void |
setBoundsChecking(boolean b)
Sets a global flag to enable or disable boudsn checking of deployment information |
void |
setDescription(java.lang.String description)
Sets the description text of this descriptor. |
void |
setDisplayName(java.lang.String name)
sets the display name for this bundle |
void |
setLargeIconUri(java.lang.String largeIconUri)
Sets the large icon name of this descriptor as a String. |
void |
setLocalizedDescription(java.lang.String lang,
java.lang.String description)
Add a localized description for this descriptor |
void |
setLocalizedDisplayName(java.lang.String lang,
java.lang.String displayName)
Add a localized display name for this descriptor |
void |
setLocalizedLargeIconUri(java.lang.String lang,
java.lang.String uri)
Sets the large icon uri for a particular language |
void |
setLocalizedSmallIconUri(java.lang.String lang,
java.lang.String uri)
set the localized small icon uri for the passed language |
void |
setName(java.lang.String name)
Sets the name of this descriptor. |
void |
setSmallIconUri(java.lang.String smallIconUri)
Sets the small icon name of this descriptor as a String. |
void |
visit(DescriptorVisitor aVisitor)
Visitor API implementation, all descriptors must be visitable |
| Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor |
|---|
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DESCRIPTOR_CHANGED
public static final java.lang.String NAME_CHANGED
public static final java.lang.String DESCRIPTION_CHANGED
public static final java.lang.String LARGE_ICON_CHANGED
public static final java.lang.String SMALL_ICON_CHANGED
public java.lang.String docType
| Constructor Detail |
|---|
public Descriptor()
protected Descriptor(Descriptor other)
other - the source descriptor
public Descriptor(java.lang.String name,
java.lang.String description)
name - the name of the descriptor.description - the name of the descriptor.| Method Detail |
|---|
public static void setBoundsChecking(boolean b)
b - true for bounds checking on, false else.public static boolean isBoundsChecking()
public void setName(java.lang.String name)
name - the new name of the descriptor.public java.lang.String getName()
public void setLocalizedDisplayName(java.lang.String lang,
java.lang.String displayName)
lang - the local identifier (null if using default locale)displayName - the localized stringpublic java.lang.String getLocalizedDisplayName(java.lang.String language)
language - the language
public java.util.Map<? extends java.lang.String,? extends java.lang.String> getLocalizedDisplayNames()
public void setDisplayName(java.lang.String name)
name - the display namepublic java.lang.String getDisplayName()
public void setDescription(java.lang.String description)
description - the new description text of the descriptor.public java.lang.String getDescription()
public void setLocalizedDescription(java.lang.String lang,
java.lang.String description)
lang - the local identifier (null if using default locale)description - the localized stringpublic java.lang.String getLocalizedDescription(java.lang.String lang)
lang - the local language
public java.util.Map<? extends java.lang.String,? extends java.lang.String> getLocalizedDescriptions()
public void setLocalizedLargeIconUri(java.lang.String lang,
java.lang.String uri)
lang - the language identifieruri - the large icon uripublic java.lang.String getLocalizedLargeIconUri(java.lang.String lang)
lang - the language or null for the current locale
public java.util.Map getLocalizedLargeIconUris()
public void setLocalizedSmallIconUri(java.lang.String lang,
java.lang.String uri)
lang - the languageuri - the uri for the small iconpublic java.lang.String getLocalizedSmallIconUri(java.lang.String lang)
lang - the language
public java.util.Map<? extends java.lang.String,? extends java.lang.String> getLocalizedSmallIconUris()
public java.lang.String getLargeIconUri()
public void setLargeIconUri(java.lang.String largeIconUri)
largeIconUri - the large icon name of this descriptorpublic java.lang.String getSmallIconUri()
public void setSmallIconUri(java.lang.String smallIconUri)
smallIconUri - the small icon name of this descriptor
public static java.lang.String createUniqueFilenameAmongst(java.lang.String trialName,
java.util.Vector<java.lang.String> otherNames)
trialName - the suggested nameotherNames - The Vector of String objects none of which will be the same as the return
public static java.lang.String createUniqueNameAmongst(java.lang.String trialName,
java.util.Vector<java.lang.String> otherNames)
trialName - the suggested nameotherNames - The Vector of String objects none of which will be the same as the return
public static java.lang.String createUniqueNameAmongstNamedDescriptors(java.lang.String trialName,
java.util.Set<? extends Descriptor> descriptors)
trialName - the suggested namedescriptors - The Set of Descriptor objects to whose name attribute will not be the same as the return
public void addDeploymentExtension(DeploymentExtensionDescriptor de)
de - descriptor to addpublic java.util.Iterator getDeploymentExtensions()
public void addPrefixMapping(java.lang.String mapping,
java.lang.String uri)
mapping - the mappinguri - the uripublic java.util.Map<java.lang.String,java.lang.String> getPrefixMapping()
public void print(java.lang.StringBuffer sb)
print in class DynamicAttributesDescriptorpublic void visit(DescriptorVisitor aVisitor)
aVisitor - the visitor implementationpublic java.lang.String getDocType()
public void fillDocType(java.io.InputStream in)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||